NYCPHP Meetup

NYPHP.org

[nycphp-talk] GD renders all images to B&W on resize

John Nunez john at coolmacgames.com
Fri Mar 10 15:40:15 EST 2006


Alan,

Thanks this worked!

John



On Mar 10, 2006, at 11:15 AM, Alan T. Miller wrote:

> Look at your function calls, it may be that you need to update your
> code to use the function imageCreateTureColor instead of imagecreate.
> It has been a while, but I had a similar problem and that was the fix
> (you will have to check the exact function names in the PHP manual).
> Hope that helps.
>
> Alan
>
> On Mar 10, 2006, at 7:51 AM, John Nunez wrote:
>
>> Hi All,
>>
>> I wrote some code over a year ago that resizes an image when it's
>> uploaded. Recently the RedHat server patched itself and it seems that
>> this code is now broken.  All the images are properly resized but
>> they are a weird grayscale mess. Is there a fix for this?
>>
>> PHP 4.3.10
>> GD bundled (2.0.28 compatible)
>>
>> Thanks,
>> John
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>> New York PHP Conference and Expo 2006
>> http://www.nyphpcon.com
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list