Expand my Community achievements bar.

SOLVED

Cropped Image save as a new Image

Avatar

Level 3

Hi ,

Currently I am working on AEM 6.5.4 project. Where we have requirement like whenever author crop an image (eg: 2:3 or free hand) it should store as a new image instead overwriting the original image. As of now default behavior is the new cropped image is overwriting existing image.

Did someone came through this requirement ? it would be great if anyone can give similar examples how to achieve this requirement. Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Level 4

We've customized to this requirement before, but unfortunately, it's been a while and I can't recall the precise mechanism we took.  If my vague memory is correct, we had users access the "crop-as-new-image" function via a small custom workflow (accessed via a custom menu button) that leveraged the same UI as the out-of-the-box crop, but since we'd forked that OTB code, we could take a different result.

 

I would say that crops in the AEM tool are almost never the right way for users to handle cropping.  Most creatives are more comfortable in Photoshop for something like this and would rather access the asset via Asset Link or Desktop app to make a quick adjustment--and they could easily save the adjustment as a new image.  That would avoid the need for customization altogether and keep creative users making modifications in the Creative Cloud tool with which they're more comfortable.

 

Lastly, if you were going to customize to provide a technical solution, I'd look strongly at Smart Cropping as your starting point if Dynamic Media is owned (rather than the older AEM Edit function).  You could customize the Smart Crop adjustment screen to add a "Save Smart Crop as New Image" function and the back-end code to submit the Smart Crop as a new image (and probably create a Source relationship) shouldn't be too hard.

 

Hope this helps,

Beau

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

We've customized to this requirement before, but unfortunately, it's been a while and I can't recall the precise mechanism we took.  If my vague memory is correct, we had users access the "crop-as-new-image" function via a small custom workflow (accessed via a custom menu button) that leveraged the same UI as the out-of-the-box crop, but since we'd forked that OTB code, we could take a different result.

 

I would say that crops in the AEM tool are almost never the right way for users to handle cropping.  Most creatives are more comfortable in Photoshop for something like this and would rather access the asset via Asset Link or Desktop app to make a quick adjustment--and they could easily save the adjustment as a new image.  That would avoid the need for customization altogether and keep creative users making modifications in the Creative Cloud tool with which they're more comfortable.

 

Lastly, if you were going to customize to provide a technical solution, I'd look strongly at Smart Cropping as your starting point if Dynamic Media is owned (rather than the older AEM Edit function).  You could customize the Smart Crop adjustment screen to add a "Save Smart Crop as New Image" function and the back-end code to submit the Smart Crop as a new image (and probably create a Source relationship) shouldn't be too hard.

 

Hope this helps,

Beau