homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

command or script to make thumbnails

10+ Year Member

Msg#: 4165120 posted 8:06 am on Jul 6, 2010 (gmt 0)

Not sure if this is really a htaccess topic but here goes.

Currently on my website apache server we have a folder into which we upload a pile of high resolution pictures for our agents worldwide to download.
A htaccess file is used to do two things:
To control access - login / password
To enable a listing of the pictures since there is no index file - using the Options -Indexes   switch

I want to enable users to see a thumbnail of each picture so they can decide whether to download without having to open the high resolution file first.

Currently, it shows an icon and name of an image but no thumbnail.
Can someone suggest a quick easy way to do this perhaps using a script or something?
The perfect solution would be to stick in a script which automatically makes a thumbnail and positions it to the left of the link of the high resolution file.



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4165120 posted 2:59 am on Jul 10, 2010 (gmt 0)

Make an index page (static HTML or dynamic PHP) that links to the big images using the thumbnail images, and then either create and upload those thumbnails or use an image-processing script to do it on the server (save and/or cache the thumbnails to avoid having to re-generate them every time the pages is loaded!)

There are many PHP scripts and libraries that you could use to do this, but I'm not really up to speed on that subject. imagemagick comes to mind.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved