Resizing images / creating smaller product thumbnail images

A place to discuss and receive support for the Web Auction application.

Resizing images / creating smaller product thumbnail images

Postby yvan » Tue May 05, 2009 1:25 pm

I'd like to modify the auction app so that a second, smaller thumbnail image is generated (and saved on the server) using the uploaded image.

I already know how to resize images and generate thumbnail images using PHP. But which file would I need to modify in order to add this functionality, .. and how do I go about it? Please advise.

Thanks!
- Yvan
yvan
 
Posts: 13
Joined: Tue Mar 24, 2009 12:48 pm

Postby shannah » Wed May 06, 2009 9:55 am

There are many strategies to do this. If you are automatically generating these thumbnails, you could just use naming conventions for the thumbnails so that you don't have to store any additional information in the database, and just modify the templates to show the thumbnail.

The public_product_list.html template is used for the list view.
The view_product.html template is used to show the product details.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby yvan » Wed May 06, 2009 11:40 am

But which file(s) would I need to modify within the application in order to add this type of functionality (ie: code that generates a separate thumbnail image) ?
yvan
 
Posts: 13
Joined: Tue Mar 24, 2009 12:48 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved