Re: [GD-DEVEL] Color bug in JPEG output with 2.0.36

From: Date: Sun, 30 Mar 2008 09:48:46 +0000
Subject: Re: [GD-DEVEL] Color bug in JPEG output with 2.0.36
References: 1  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-403@lists.php.net to get a copy of this message
Hi Ethan! On Sun, Mar 30, 2008 at 6:01 AM, Ethan A Merritt <merritt@u.washington.edu> wrote: > I am forwarding a bug report from a gnuplot user who > tried out the current gd 2.0.36RC: Thanks for this report! If it persists after our tests, can you open an issue in bugs.libgd.org please? > > I updated from 2.0.33 to the most recent test version, 2.0.36RC. The JPEG > > test no longer segfaults. However, the color of the sinusoid is brown > > instead of bright red as it is for the PNG output. > > And indeed, I can confirm that the colors coming out of JPEG are > strange. In particular, pure red is rendered as brown. As far as I can see, we did not change the JPEG codec since 2.0.29 except a sanity check (http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd_jpeg.c). I can't reproduce the problem (if I got it correctly) here (linux/windows, 32 or 64bit). Can you try using the attached code (result image attached too)? Also it would help to have the script to reproduce it (gnuplot, c, php or perl). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

Attachment: [text/x-csrc] jpeg.c
« previous php.gd.devel (#403) next »