Smart Image Processor ASP 2 Support Product Page

Solved

If you save your image using the full path, how do you display a thumbnail dynamically

Reported 02 Dec 2011 03:27:06
1
has this problem
02 Dec 2011 03:27:06 John Hessel posted:
I am creating a gallery management system and I would like to allow the user to upload the image, resize it into a large image (for public display) and a thumbnail (for the admin page).
If I save the file name only I can display both the thumbnail and the large image without problem. However if I use the full path to store the name in the database I cannot figure out how to display the thumbnail.
I would prefer to use the full path option because the images are stored in a dynamic folder, and the full path option makes the "delete before record" feature work perfectly.
So how do you display a thumbnail when using the full path filename storage option?

Replies

Replied 05 Dec 2011 12:43:04
05 Dec 2011 12:43:04 Miroslav Zografski replied:
Hello John,

well, using the full path as option when uploading will require a function that will change that path accordingly to the thumbnail position.
Or using a function to strip the path and record only the filename in a separate field in the table which afterwards to be used to display the thumbnail.
Replied 07 Dec 2011 04:58:19
07 Dec 2011 04:58:19 John Hessel replied:
Thank you for your reply. I thought it would be something like that. Do you have a sample code I could use for this?

"Or using a function to strip the path and record only the filename in a separate field in the table which afterwards to be used to display the thumbnail."

Reply to this topic