@Sam - No you dont.
You need to pass the "method" type in the transforms array. Be sure
that you are using the latest version.
'transforms' => array(
'resize1' => array('method' => 'resize', 'width' => 100,
'height' => 100),
'resize2' => array('method' => 'resize', 'width' => 50,
'height' => 50)
)
On Jul 3, 9:23 am, Sam Sherlock <[email protected]> wrote:
> use something like phpthumb and place it in vendors
>
> seehttp://bakery.cakephp.org/articles/view/thumbnails-generation-with-ph...
> - S
>
> On 3 July 2010 12:10, K3 <[email protected]> wrote:
>
> > Hi,
> > i am using milesj uploader behaviour (http://www.milesj.me/resources/
> > script/uploader-plugin)
> > and it is working fine. However i want to make multiple
> > thumbnails(multiple resize transforms), something like:
>
> > class Upload extends AppModel {
> > var $actsAs = array(
> > 'Uploader.Attachment' => array(
> > 'picture' => array(
> > 'uploadDir' => '/files/pics/',
> > 'name' => '',
> > 'transforms' => array(
> > 'resize1' => array('width' => 100, 'height' => 100),
> > 'resize2' => array('width' => 50, 'height' => 50)
> > ),
> > )
> > )
> > );
>
> > Anyone can tell me how to accieve this?
> > thanks
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>For
> > more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en