PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old August 21st, 2005, 03:46 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Posts: 464
Problem with png pictures... GD or gallery?

I use GD2 for resizing
Following problem: the resized picture and thumbnail are nearly invisible when I upload a png in 16 million colors (true color)

I know that format is hardly used as it consumes very much size compared to jpg

but somehow (at least for my version of php) true color pngs turn out horrible.. thumbnails worse than setting to gd1 if you have gd2 installed..

so I had an intuition as I saw that in the examples on php.net they use imagecopyresampled ... so i replaced the png function in functions_gallery_imageedit.php. The drawback would be that it only fixes the issue for GD2 and not for GD1 (but I think you cant fix it for GD1) :

Code:
Content visible to verified customers only.
with:
Code:
Content visible to verified customers only.
on my system it seems to work...
But I think its not the way you should do it.

at least now i can upload and resize both types of png.. 256 and true color ones...

as the files are to large to attach (for examples) i post them as bb code

true color png:

Code:
Content visible to verified customers only.
resized bad pic:

Code:
Content visible to verified customers only.
to test.. upload the true color png (the first pic) and check the thumbnails

the png was created with paint shop pro 9

Luc

PS: another issue.. as people will only upload png-24 (true color) to show some alphachannel effects etc... there might still be some rewriting needed to preserve alphachannel transparency etc...
Luciano is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem uploading pictures... rrokdoka Installs and Upgrade - vBulletin 3.5.X 1 October 30th, 2005 02:31 PM
uploading pictures problem(NOT A BUG) Gliderstyle Classifieds Bug Reports 6 July 8th, 2005 09:49 AM
3 new gallery pictures in the portal? Simone How Do I? - vBulletin 3.0.X 1 April 27th, 2005 09:24 AM
Another problem with members uploading pictures Shon Installs and Upgrade - vBulletin 3.0.X 7 March 15th, 2005 12:59 PM


All times are GMT -5. The time now is 02:51 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0