Check Similar/Identical images present in DAM while uploading new Assets in DAM but not after Uploading . | Community
Skip to main content
Level 2
September 21, 2020
Solved

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

  • September 21, 2020
  • 1 reply
  • 2466 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vanegi

You can check the following documentation https://docs.adobe.com/content/help/en/experience-manager-65/assets/managing/duplicate-detection.html 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)

 

1 reply

vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
September 21, 2020

You can check the following documentation https://docs.adobe.com/content/help/en/experience-manager-65/assets/managing/duplicate-detection.html 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)

 

Level 2
September 22, 2020
Thank You so much for the response...!