But, now that the naming problem is solved, the thumb generation is producing an unexpected result, wrapping the image with smaller width and height into a black square of the passed mesaures
Here is a capture: http://i.minus.com/iMCU4QfzWadYN.jpg
It will be nice to allow using the Uploader image functions isolated with custom images and not only after uploading them.
Great plugin however, and thanks for the fast reply.
El viernes, 4 de mayo de 2012 07:41:50 UTC+2, Miles J escribió:
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment