![]() |
Image resize
Well I'm working on a gallery for a client and he specifically stated he wanted the full images download and then resized to thumbnails. I was wondering how'd y'all would do it.
I though up the following two methods Method 1: Use javascript to fetch the images width/height set the image elements and then set the src. Method 2: use getimagesize() and set the height/width elements beforehand. |
I have a solution. Maybe instead of actually creating a thumbnail that is saved. You can use the large image.
If you check out my thumbnail class here. http://www.talkphp.com/advanced-php-...using-php.html You can use this to create the thumbnail of that large image without it actually saving it to your server. You can just use something like this PHP Code:
|
What I usually do is:
Hope this is any helpful. |
| All times are GMT. The time now is 06:21 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0