Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Check Similar/Identical images present in DAM while uploading new Assets in DAM but not after Uploading .

Avatar

Level 2

We want to check there is already image present in DAM which is similar / Identical to the new image which is being uploaded. We want this activity to happen while uploading of new Assets in DAM.

1 Accepted Solution

Avatar

Correct answer by
Employee

You can check the following documentation https://docs.adobe.com/content/help/en/experience-manager-65/assets/managing/duplicate-detection.htm... for detecting duplicate assets.

 

This is done by checking SHA 1 checksum value. 

//If the asset you upload already exists in AEM Assets, the Duplicates Detected dialog warns you that you are attempting to upload a duplicate asset. The dialog appears only if the SHA 1 checksum value of the binary of the existing asset matches that of the asset you upload. In this case, the names of assets is immaterial. In other words, the dialog can even appear for assets that have different names if the SHA 1 values for their binaries are the same. With each asset uploaded you will see SHA 1 JCR node created.

So in you use-case you need to write a custom service to do the needful.

Where to find SHA1 number in Image Assets -> jcr:content ->metadata -> dam:sha1  (/content/dam/geometrixx-outdoors/banners/best-season.jpg/jcr:content/metadata)

 

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

You can check the following documentation https://docs.adobe.com/content/help/en/experience-manager-65/assets/managing/duplicate-detection.htm... for detecting duplicate assets.

 

This is done by checking SHA 1 checksum value. 

//If the asset you upload already exists in AEM Assets, the Duplicates Detected dialog warns you that you are attempting to upload a duplicate asset. The dialog appears only if the SHA 1 checksum value of the binary of the existing asset matches that of the asset you upload. In this case, the names of assets is immaterial. In other words, the dialog can even appear for assets that have different names if the SHA 1 values for their binaries are the same. With each asset uploaded you will see SHA 1 JCR node created.

So in you use-case you need to write a custom service to do the needful.

Where to find SHA1 number in Image Assets -> jcr:content ->metadata -> dam:sha1  (/content/dam/geometrixx-outdoors/banners/best-season.jpg/jcr:content/metadata)

 

Avatar

Level 2
We are actually not looking for duplicate detection .. All we want to detect is Identical / Similarity between Assets. As OOTB feature is already available with Adobe Sensei but this is done after uploading of Assets in DAM and enabling SMART tags to those assets.. We want to have a mechanism to detect similarity / identical assets while uploading i.e. before Asset being uploaded in DAM.