Page 1 of 1

Resizing images / creating smaller product thumbnail images

PostPosted: Tue May 05, 2009 1:25 pm
by yvan
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

PostPosted: Wed May 06, 2009 9:55 am
by shannah
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.

PostPosted: Wed May 06, 2009 11:40 am
by yvan
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) ?