Closed p4004 closed 11 years ago
What version are you using? Self transformation is only available for v4+ using self = true. Applying the same dbColumn just saves the new path but I don't remember if it actually overwrites the original.
By the settings you are using, I'm assuming this is a v3 setup.
Yes, I am using v3. Ok, I'll need to upgrade or find a way around. Thanks anyway.
One suggestion would be that you leave documentation for previous versions of plugin, so f.e. example if we need to modify our running projects which use older version of plugin, we could find documentation for that.
F.e. I have made one project where Upload process is held in controller, but now I don't find information at your website how this is controlled, as v4 seems to be created for use only by attaching behavior through model.
Yeah, I hear that a lot. My site doesn't support docs for multiple versions so it will always display docs for the latest version. I have no time to build support for other versions, nor do I have time to actually write the docs. Sorry.
My code looks like this:
In transformations array I have this last line:
array('method' => 'resize','self' => true, 'width'=>1600, 'height'=>1200, 'append'=> false, 'uploadDir' => '/files/uploads/', 'dbColumn' => 'path', 'overwrite' => true),
It resizes original image and overwrites the original, but it seems to be a little buggy. The new image size is not saved to database, and not all transformations before this one are being completed.
I tried other combinations like removing 'self' => true, or 'overwrite' => true, but that gave even worse results.
In plugins documentation it is written: "Transform the uploaded image or create new images:". So how could I transform the very uploaded image without creating new one? :) I could not find that explained in documentation.
Many thanks