Expand my Community achievements bar.

Fetching smart crop and its properties using Asset Http Api

Avatar

Level 4

Hi,

 

Currently i am trying to migrate assets and its metadata with smart crop images from one aem cloud instance to another aem cloud instance. I can able to fetch the asset and its metadata from the source aem folder. would like to know is there any api we can use to fetch the smart crops also? When i hit the /api/assets/wknd/investors/asset.jpg/renditions.json -> i am getting only the renditions not the smart crops image details.

 

/api/assets/wknd/investors/asset.jpg.json/jcr:content/metadata.json -> giving the metadata properties. I could see that

hasLocalCrops: true

Anyone has any idea how to retrieve the smart crop images. I am using Aio app builder in this migration process.

 

 

 

Thanks,

Bhavani Bharanidharan

 

 

Topics

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

1 Reply

Avatar

Level 6

Hi @BhavaniBharani ,

 

Since you are moving the assets from one Cloud instance to another, the Assets will still be processed on the new AEM instance, since smart crop is a configuration, doesn't it make sense to have it configure it on the new instance and let it run when assets are uploaded as part of the Post Processor ?

 

I can imagine you would want to save resource by including the smart crops via API as well but it would make more sense to let the new system do the processing.

 

Regards,
Anupam Patra