Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Bug #19379 Missing color index check in _createImage()
Submitted: 2012-04-10 13:56 UTC
From: michael_heuberger Assigned:
Status: Open Package: Image_Transform (version 0.9.5)
PHP Version: 5.2.6 OS: Apache 2.2
Roadmaps: (Not assigned)    
Subscription  


 [2012-04-10 13:56 UTC] michael_heuberger (Michael Heuberger)
Description: ------------ Hi there I'm seeing this PHP error coming from class Image_Transform_Driver_GD: Warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 255 It's thrown at line 602. And I can guess why. Some GIF images can have a transparency index higher than 255, especially when animated. So I recommend you to obtain the palette size first with imagecolorstotal(), here a good example: http://stackoverflow.com/questions/3874533/what-could-cause-a-color-index-out-of-range-error-for-imagecolorsforindex Thanks for the bug fix, cheers :) Michael H

Comments

 [2012-04-10 16:05 UTC] doconnor (Daniel O'Connor)
Related to Request #16069 ?
 [2012-04-10 16:12 UTC] michael_heuberger (Michael Heuberger)
Right, related to this request but the problem hasn't been solved really. You should reopen the ticket.