On Friday, 2 December 2011 10:10:33 UTC+1, Alex Bovey wrote:
>
> On Thu, Dec 1, 2011 at 6:41 PM, Miles J <[email protected]> wrote:
> > This should be done when the image is uploaded.
>
> Thanks for the responses all.
>
> Miles - I'm interested to know your rationale for that approach, which
> I always used to follow, but find a helper so much more convenient
> when you want to make a minor adjustment to the image size.
>

That's quite a common way of thinking about upload processing.

Why would you run logic each time you want to point at an image - instead 
of once when you upload it such that your helper/image logic is only "the 
$size thumbnail for that file is here: "$domain/$path.$size.$ext"?

What happens when you find you need a different size for whatever
> reason?  Do you simply have a function that lets you regenerate all
> images to a certain size, presuming you keep the originally uploaded
> image?
>

Personally, I would always maintain a pristine, or largest-used-size 
image/file to be able to regenerate versions at any time.

AD

>

-- 
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

Reply via email to