I am using the CakePHP Upload plugin since quite some time and I am really happy with it:
public $actsAs = array(
'Upload.Upload' => array(
'image' => array(
'fields' => array(
'dir' => 'dir'
),
'thumbnailSizes' => array(
'xvga' => '1024x768',
'vga' => '640x480',
'thumb' => '300x300'
),
'thumbnailMethod' => 'php',
)
)
);
In a new usecase I have to make some better thumbnails than some static downgrade of the resolution to 640x640 or 300x300. I want to have a resolution per image orientation or the ability to say that an image should not exceed 30kB.
Jose Gonzales, the plugin author, makes it clear that the Upload plugin does not create thumbnails:
This plugin does not create thumbnails. You can use a custom Transformer to create modified versions of file uploads.
I'd like to know how this could be achieved together with the existing Upload plugin?