Hello
When a png image file with transparent background is uploaded, when it is resized for thumbnail view, it converts to an image with black background, where it was transparent before...
Is there any way i could make it:
1.) to resize with WHITE background, not black, as it is now
2.) to resize to same png format image (not jpg) and keep transparent background where it was?
Thanks for your replies in advance, guys!
Cheers!
P.S.
Thanks for that great gallery!
The same thing happens with .gifs (animated and non-animated). In the thumbnail of each gif, the areas that are transparent on the original image end up black on the thumbnail.
If it isn't possible to fix that, would it be possible to use my own premade .gif thumbs? I tried putting them in the cache folder but the .jpg version is always used, and if I delete it a new one is made.. I can't get it to use the .gif thumbnail.
Thanks for any help!
No, sorry, the internal image processor only creates jpgs. So even if you upload gifs or pngs they will be turned into jpgs. This is always the case for thumbnails. But you can show gifs and pngs directly on the image.php page (the bigger image we call "sized image") if they are the same size or small than the image size setting on the theme options tab.
You can, of course, display the original image. But if you want a small version you would have to use the browser resizing since zenphoto if it resizes an image will always create a jpeg.
You would change the theme where it is printing a thumbnail to print the full image. There is no function which does that, though so you will have to create the HTML using the getUnprotectedImage function.