Are you trying to overwrite the original image with the resized one?
Try adding overwrite = true to the resize transformation.
On Thursday, May 3, 2012 9:49:21 AM UTC-7, Xoubaman wrote:
>
> This is my behavior setup:
>
> public $actsAs = array(
> 'Uploader.Attachment' => array(
> 'image_upload' => array(
> 'name' => 'formatFileName',
> 'baseDir' => IMAGES,
> 'uploadDir' => 'writers',
> 'dbColumn' => 'image',
> 'maxNameLength' => 200,
> 'overwrite' => true,
> 'transforms' => array(
> array('method' => 'resize', 'width' => IMAGE_WRITER_H,
> 'height' => IMAGE_WRITER_H, 'dbColumn' => 'image', 'append' => false),
> array('method' => 'resize', 'width' =>
> IMAGE_WRITER_THUMB_W, 'height' => IMAGE_WRITER_THUMB_W, 'dbColumn' =>
> 'thumb', 'append' => '_thumb')
> )
> )
> )
> );
>
> The problem is that the saved image in 'image' column is "bowser-1.png",
> instead the expected "bowser.png".
>
> The thumb works fine and is named "bowser_thumb.png" as expected.
>
> Any idea?
>
>
--
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