Thread: Image resize
View Single Post
Old 03-29-2008, 10:41 AM   #3 (permalink)
maZtah
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

What I usually do is:
  1. The user uploads a picture to the server (with my CMS)
  2. CMS creates a thumbnail from original picture (GD library)
  3. Save both pictures (original and thumb) on the server
  4. Put all picture information in the database (like the new width and height of the thumbnail)
  5. Now for the gallery: read out the image table from the database and show the thumbnails - with their widths/heights - on the page!

Hope this is any helpful.
maZtah is offline  
Reply With Quote