PDA

View Full Version : thumbnails: using .png instead of .jpg


shoomz
10-20-2005, 09:38 PM
Hi,

I love pixelpost the way it is, except for one thing: Iīd like to use the .png format for thumbnails instead of .jpg due to images with transparent soft edges. How do I do that?

blinking8s
10-20-2005, 11:20 PM
internet explorer and other older browsers wont see/rended the alpha channels

my suggestion is to no attempt this until the next IE version takes up a majority of IE users

blame MS, they're WAY behind

raminia
10-21-2005, 10:06 AM
png for more sharp edges? ummmm does it help? I assumed, the down sampling will kill the edges.

Joe[y]
10-21-2005, 10:34 AM
no... for transparent edges - as jpgs don't have a transparent capability. not sure how transparency is needed for photos though.

shoomz
10-21-2005, 06:14 PM
Thanks for your replies.

internet explorer and other older browsers wont see/rended the alpha channels


You are absolutely right of course but I gotta say I really donīt care about it. Iīve managed to get my photoblog to look right in all recent versions of the most popular browsers and thatīs enough for me.

So can it be done, can the thumbnails be changed to .png?

GeoS
10-21-2005, 09:58 PM
So can it be done, can the thumbnails be changed to .png?

Yes, they can but you must creat code for PNG on your own hand :)

shoomz
10-22-2005, 12:23 PM
Yes, they can but you must creat code for PNG on your own hand :)
:) yeah, thatīs what Iīm going to do. I wasnīt asking the people here to do it for me – all I need is some hints where to start (e.g. which php file(s), which lines?). Iīd really appreciate it.

GeoS
10-22-2005, 10:30 PM
1.4.2/includes/functions.php @ line 45:


function createthumbnail($file)...


1.5xxx/includes/functions.php @ line 78:


function createthumbnail($file)...


PS http://php.net/manual/ref.image.php