I usually resize the uploaded file to a manageable size but no crop, full image so the user never loses anything, Then allow them to crop the part they want which crates 2 images used in the site, the thumb and the large size image. In total upload 1 but end up with 3 (original version of uploaded file, 1 thumb and 1 "large" for use on the site)
Also as cricket mentions all data is saved to the db, (name x,y,w,h) Just to give you an idea but every case is different and may require different sizes, number of version, and there are plenty of options on things you can do with images dynamically thru functions. K -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of cricket Sent: Friday, April 08, 2011 11:38 PM To: [email protected] Subject: Re: thumbnail generator On Fri, Apr 8, 2011 at 9:47 PM, Krissy Masters <[email protected]> wrote: > I would say on upload you make the sizes needed once. Why constantly resize > for each page load or on initial view / load check to see if its been > created if not create it. But as for performance I have no proof to say > which is better. I agree with you both. Libs like phpThumb do offer caching but I I usually offer to let the user crop the thumb themselves, so it may not be a reduced version of the image but offset, as well. Also, I normally save the thumbnail info in the DB anyway. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
