Thread: Gd images
View Single Post
Old 03-13-2008, 11:21 PM   #11 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Well, I'd suggest you calculate the thumbnail dimensions BEFORE creating the virtual image to store the thumb into. Then, you wouldn't have problems with imagecopyresampled. If the image has some transparent pixels around it, run a function on the image to see where is the image ending (imagecolorat).
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote