I use GD2 for resizing
Following problem: the resized picture and thumbnail are nearly invisible when I upload a png in 16 million colors (true color)
I know that format is hardly used as it consumes very much size compared to jpg
but somehow (at least for my version of php) true color pngs turn out horrible.. thumbnails worse than setting to gd1 if you have gd2 installed..
so I had an intuition as I saw that in the examples on php.net they use imagecopyresampled ... so i replaced the png function in functions_gallery_imageedit.php. The drawback would be that it only fixes the issue for GD2 and not for GD1 (but I think you cant fix it for GD1) :
Code:
Content visible to verified customers only.
with:
Code:
Content visible to verified customers only.
on my system it seems to work...
But I think its not the way you should do it.
at least now i can upload and resize both types of png.. 256 and true color ones...
as the files are to large to attach (for examples) i post them as bb code
true color png: Code:
Content visible to verified customers only.
resized bad pic: Code:
Content visible to verified customers only.
to test.. upload the true color png (the first pic) and check the thumbnails
the png was created with paint shop pro 9
Luc
PS: another issue.. as people will only upload png-24 (true color) to show some alphachannel effects etc... there might still be some rewriting needed to preserve alphachannel transparency etc...