User avatar
Joined: 9 Aug 2011
Posts: 16
Switzerland
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:
File comment: transparent PNG in my gallery
1.PNG
1.PNG [ 139.85 KiB | Viewed 2001 times ]
Re: Transparent PNG is going to white?
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7319
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.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: Transparent PNG is going to white?
Twider84
Joined: 1 Mar 2011
Posts: 3
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?
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7319
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.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: Transparent PNG is going to white?
Twider84
Joined: 1 Mar 2011
Posts: 3
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 [ 104.03 KiB | Viewed 1943 times ]


Is it possible to change de default black background for all transparent PNG thumbnails?

THANKS!


Re: Transparent PNG is going to white?
User avatar
Imagevue PowerPack
Joined: 20 May 2011
Posts: 442
Denmark / Poland
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:

_________________
Gallery
PowerPack™ Demo
PowerPack™ Download

Help improve PowerPack - Test and report bugs.
Regards, Artur.


Re: Transparent PNG is going to white?
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7319
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 ...

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: Transparent PNG is going to white?
User avatar
Imagevue Hitman
Joined: 2 May 2006
Posts: 2858
Here is the fix. Replace iv-includes/include/ivImage.class.php with the file attached.


Attachments:
ivImage.class.php.zip [1.33 KiB]
Downloaded 108 times

_________________
Nick // Imagevue

Image
Image
Image
Image

dear-apple.com jaconda.im indexr gridpapr
Re: Transparent PNG is going to white?
User avatar
Experienced
Joined: 18 Dec 2008
Posts: 39
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?
User avatar
Imagevue Hitman
Joined: 2 May 2006
Posts: 2858
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

_________________
Nick // Imagevue

Image
Image
Image
Image

dear-apple.com jaconda.im indexr gridpapr


Re: Transparent PNG is going to white?
User avatar
Experienced
Joined: 18 Dec 2008
Posts: 39
Thanks Nick


Re: Transparent PNG is going to white?
User avatar
Imagevue Hitman
Joined: 2 May 2006
Posts: 2858
By the way, background color for transparent png is now an option in Imagevue X2.8.

_________________
Nick // Imagevue

Image
Image
Image
Image

dear-apple.com jaconda.im indexr gridpapr


Re: Transparent PNG is going to white?
User avatar
Experienced
Joined: 18 Dec 2008
Posts: 39
Much Appreciated


 
Imagevue Forums HomeForum  View topic - Transparent PNG is going to white?13 posts