Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Automatic thumbnail generating

Automatic thumbnail generating
Thread Tools
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Nov 12, 2002, 06:53 PM
 
Our server runs on Linux. I have created an image gallery, and now I would like to automate it by creating, and resizing images automatically. My ultimate goal is to dump all my images into one folder on the server, and then the server size the images to something like 640 x 480, then create thumbs and the image gallery itself. I got the image gallery down as a first step. Now I would like to work on the automatic thumbnail creating, and then the image sizing.

What programs can do sizing of images that could be added to our server?

It should be fast, and accessible through CLI. My thoughts are to just add the thumbnail generating commands to the PHP script running the gallery using "system()" function.

Thank you,


t
     
Professional Poster
Join Date: Dec 2001
Location: somewhere
Status: Offline
Reply With Quote
Nov 12, 2002, 08:05 PM
 
Do you want thumbnails for ease of display, or for bandwidth considerations? If you only want it for ease of display, then use the height and width properties of the img tag. Many browsers will scale the image to fit the size you give it.
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Nov 13, 2002, 01:43 AM
 
wallinbl has a good point, by actually creating thumbnails manually the file size stays low, remember those of us still using our 14.4 k modems.

Photoshop ( from version 6 anyway ) has a really good batch automation feature, once you've got it running you can go get a coffee and return to see all the hard work done.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 13, 2002, 04:16 AM
 
not tried it yet, but suggested to me by a friend: Gallery
Provides users with the ability to create and maintain their own photo albums with automatic thumbnail generation, image resizing, rotation and more
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
t_hah  (op)
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Nov 13, 2002, 10:18 AM
 
I do want to have control over what I do, and actually be able to do it. thank you for the gallery links though.

I guess NetPBM is an option, but is there anything out there that is easier to use, or any competitions to it?

Thank you,

t
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Nov 13, 2002, 05:49 PM
 
Got a nasty deadline so can't type for long,

...but PHP has a great set of image manipulation functions. One that I'm using now is the imageCopyResampled which, in conjunction with GD 2.0.4, allows for smooth bicubic resizing of JPEGs or PNGs.

The results are lovely - check out the PHP (www.php.net) page for more info
Computer thez nohhh...
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 06:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2