Page 1 of 1
Transparent PNG is going to white?
Posted: 10 Dec 2011, 15:18
by spl1
Hi there...
i want to display a transparent PNG file in my gallery.. the problem is, that the thumbnail is coverted as jpeg
... then my pic is white... see attach..
is there a possibility to use png as tumbs?
regards
Re: Transparent PNG is going to white?
Posted: 12 Dec 2011, 03:25
by mjau-mjau
Your PNG is not in fact converted to PNG ... but the white frame you have in your gallery is still displaying behind the PNG file. You would need to disable the frame effect ...
PNG is not possible for thumbnails, because Imagevue creates jpg preview files for all images, regardless of their original format.
Re: Transparent PNG is going to white?
Posted: 13 Jan 2012, 15:24
by Twider84
I have a similar problem. I'm fine with a jpg as thumbnail for my png but can i change the automatic black color background for the jpg thumbnail for something like gray or white???
Thanks!
Re: Transparent PNG is going to white?
Posted: 15 Jan 2012, 01:14
by mjau-mjau
The thing is, the PNG does stay transparent, but there is still a frame behind your image as defined in your theme. You would need to disalbe the frame, either globally, or for that folder, to prevent anything displaying behind your PNG.
Re: Transparent PNG is going to white?
Posted: 16 Jan 2012, 12:02
by Twider84
Thanks for the fast reply but what i want is to change the background of the thumbnail. My .png show's properly but as you can see, the frame of my thumbnails is white but the background of the .jpg thumbnail is black.

- Screen shot.png (78.6 KiB) Viewed 11297 times
Is it possible to change de default black background for all transparent PNG thumbnails?
THANKS!
Re: Transparent PNG is going to white?
Posted: 16 Jan 2012, 12:43
by Artur
Twider84 wrote:Is it possible to change de default black background for all transparent PNG thumbnails?
mjau-mjau wrote:PNG is not possible for thumbnails, because Imagevue creates jpg preview files for all images, regardless of their original format.
Twider84 wrote:THANKS!
You're welcome

Re: Transparent PNG is going to white?
Posted: 17 Jan 2012, 01:09
by mjau-mjau
Twider84 wrote:Is it possible to change de default black background for all transparent PNG thumbnails?
It is a PHP library that converts and resizes images, so I will need to check this if the PHP module can be edited to set a white background instead of black when removing PNG transparency ...
Re: Transparent PNG is going to white?
Posted: 17 Jan 2012, 11:48
by Nick
Here is the fix. Replace iv-includes/include/ivImage.class.php with the file attached.
Re: Transparent PNG is going to white?
Posted: 28 Mar 2012, 08:21
by sprocket
I wasted four hours yesterday trying to figure out why all my png backgrounds were now turning to white (which don't match my gallery) - Nick, this is not a "fix", this is a change, and a serious one at that - HOW do I get the black thumbnail backgrounds back that match the rest of my gallery? I hope you've have added a setting somewhere that let's the user decide background color, and that one persons desires hasn't become the forced choice for the masses. HELP!
Re: Transparent PNG is going to white?
Posted: 29 Mar 2012, 05:06
by Nick
Sorry about that, looks like we will have to add an option for background color. Right now you can patch it up by removing
imagefill ($newImage, 0, 0, imagecolorallocate ( $newImage, 255, 255, 255 ));
from iv-includes/include/ivImage.class.php
Re: Transparent PNG is going to white?
Posted: 29 Mar 2012, 08:43
by sprocket
Thanks Nick
Re: Transparent PNG is going to white?
Posted: 10 May 2012, 14:16
by Nick
By the way, background color for transparent png is now an option in Imagevue X2.8.
Re: Transparent PNG is going to white?
Posted: 10 May 2012, 14:20
by sprocket
Much Appreciated