Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
spl1
Experienced
Topic Author
Posts: 24
Joined: 09 Aug 2011, 15:28

Transparent PNG is going to white?

10 Dec 2011, 15:18

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
Attachments
1.PNG
transparent PNG in my gallery
1.PNG (101.85 KiB) Viewed 11354 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Transparent PNG is going to white?

12 Dec 2011, 03:25

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.
 
Twider84
Posts: 3
Joined: 01 Mar 2011, 11:32

Re: Transparent PNG is going to white?

13 Jan 2012, 15:24

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!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Transparent PNG is going to white?

15 Jan 2012, 01:14

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.
 
Twider84
Posts: 3
Joined: 01 Mar 2011, 11:32

Re: Transparent PNG is going to white?

16 Jan 2012, 12:02

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
Screen shot.png (78.6 KiB) Viewed 11296 times
Is it possible to change de default black background for all transparent PNG thumbnails?

THANKS!
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Transparent PNG is going to white?

16 Jan 2012, 12:43

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 :wink:
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Transparent PNG is going to white?

17 Jan 2012, 01:09

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 ...
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Transparent PNG is going to white?

17 Jan 2012, 11:48

Here is the fix. Replace iv-includes/include/ivImage.class.php with the file attached.
Attachments
ivImage.class.php.zip
(1.33 KiB) Downloaded 538 times
firedev.com
 
User avatar
sprocket
Experienced
Posts: 98
Joined: 18 Dec 2008, 19:40

Re: Transparent PNG is going to white?

28 Mar 2012, 08:21

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!
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Transparent PNG is going to white?

29 Mar 2012, 05:06

Sorry about that, looks like we will have to add an option for background color. Right now you can patch it up by removing
Code
imagefill ($newImage, 0, 0, imagecolorallocate ( $newImage, 255, 255, 255 ));
from iv-includes/include/ivImage.class.php
firedev.com
 
User avatar
sprocket
Experienced
Posts: 98
Joined: 18 Dec 2008, 19:40

Re: Transparent PNG is going to white?

29 Mar 2012, 08:43

Thanks Nick
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Transparent PNG is going to white?

10 May 2012, 14:16

By the way, background color for transparent png is now an option in Imagevue X2.8.
firedev.com
 
User avatar
sprocket
Experienced
Posts: 98
Joined: 18 Dec 2008, 19:40

Re: Transparent PNG is going to white?

10 May 2012, 14:20

Much Appreciated