[php-maint] Bug#317434: php4-gd: images output by php-gd are corrupted

Wookey wookey at aleph1.co.uk
Mon Aug 22 15:31:44 UTC 2005

+++ Adam Conrad [05-07-08 23:17 +1000]:
> Wookey wrote:
> >
> > Unfortunately some of the images are coming out corrupt - see
> > http://www.aleph1.co.uk/drupal/gdtest/index.php for some examples.
> I just downloaded a pristine copy of GD-Test from the upstream source[1],
> unzipped it in my public_html, did a "chmod 777 output" (as the readme
> states), and hit it with a web browser, and I don't see the same
> corruption that I do on your page.
> My guess would be that the data being used to generate the images in your
> version has been corrupted, and if you grab a pristine copy, it will work
> fine.

OK. I just did the same as you - tried again in my private public_html with
the upstream source and it worked fine.

Comparing the images with the ones in the test above showed that in each
file one 0x15 (^M), followed by an 0x12 (^J) had been removed from the file
(this occurred in each of gdtest.gif, gdtest.png and gdtest.jpg). So each of
those files was one byte short, and of course corrupt. 

Replacing the copies in that dir means the problem is fixed, so you can
close this bug - nothing wrong with php4-gd.

Now I just have to find out why that byte sequence has been nobbled -
something is obviously not 8-bit clear round here.

> If not, then we have a more obscure bug we need to look at.
> Either way, ping the bug back with your result, so I know if I can close
> it or start escalating some troubleshooting.

Sorry for the slow feedback - debconf, holidays, catching up, etc.

Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/

More information about the pkg-php-maint mailing list