Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

AEM - DAM - In Dam How can we find the images which are not referenced in any pages

Avatar

Level 2

Hi Team,

 

In AEM DAM - How can we find the images which are not referenced in any pages i.e. Images not in use through out my site or unwanted images in DAM. 

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi,

Pls navigate to the respective image in AEM DAM folder and check the properties of the image. You can find all the references mentioned in that tab. 

somensarkar_0-1706591570262.png

Also you can use ACS Commons Renovator tool if you want to create a comprehensive report. Pls check the below link for more details . Hope this will be helpful .

https://kiransg.com/2021/11/10/aem-asset-repo-cleanup-acs-commons-renovator/

Thanks,

Somen

View solution in original post

6 Replies

Avatar

Correct answer by
Level 6

Hi,

Pls navigate to the respective image in AEM DAM folder and check the properties of the image. You can find all the references mentioned in that tab. 

somensarkar_0-1706591570262.png

Also you can use ACS Commons Renovator tool if you want to create a comprehensive report. Pls check the below link for more details . Hope this will be helpful .

https://kiransg.com/2021/11/10/aem-asset-repo-cleanup-acs-commons-renovator/

Thanks,

Somen

Avatar

Level 2

HI @somen-sarkar,

 

Using this I am able to view the report but when I click on download I am getting this error. Can you let me know why this is happens

 

h1>Error during requesting: '/var/acs-commons/mcp/instances/7A538F48479294AD/_jcr_content/report.xlsx'<h3>Error Message:</h3>
<pre>java.lang.NoSuchMethodError: org.apache.poi.xssf.usermodel.XSSFColor.&lt;init&gt;(Ljava/awt/Color;)V</pre><h3>Processing Info:</h3>
<table style='font-family: monospace'>
<tr><td>Page</td><td>=</td><td>/var/acs-commons/mcp/instances/7A538F48479294AD<td></tr><tr><td>Resource Path</td><td>=</td><td>/var/acs-commons/mcp/instances/7A538F48479294AD/jcr:content/report<td></tr><tr><td>Cell</td><td>=</td><td><td></tr><tr><td>Cell Search Path</td><td>=</td><td><td></tr></table>
<h3>Sling Request Progress:</h3>

 Thanks,

Sindhuja

Avatar

Community Advisor

Hi @Kummari_DilipKu 

1.Go to host:port/damadmin, select asset for the asset -> Go to Tools -> references.

2. You may use filters by going to host:port/assets.html/content/dam -> Select asset and use 'Filter' present in sidekick at left

RajaReddy_3370_0-1706592598803.png

 

 

 

3. There is no OOTB functionality for this but if you are intrested in custom implementation, this post might help you ->

https://stackoverflow.com/questions/35187627/how-to-find-unused-images-from-cq-dam

or

  1. Audit Reports that can help you analyze asset usage. You can access them through the AEM Web Console at http://<your_aem_instance>:<port>/system/console/configMgr.

    • Navigate to the "Day CQ DAM Audit Report" configuration.
    • Enable "Enable DAM Viewers Report" and "Enable DAM Downloads Report."
    • After enabling, you can view the reports at http://<your_aem_instance>:<port>/etc/reports/auditreport.html.

    These reports can give you an idea of how often assets are being viewed and downloaded, which can be indicative of usage.

  2. Asset References: Use a tool like AEM's Query Builder to find references to DAM assets. The Query Builder can be accessed at http://<your_aem_instance>:<port>/libs/cq/search/content/querydebug.html.

    For example, you can use a query to find pages that reference a specific asset:path:/content YOUR_ASSET_PATH/jcr:content//*[jcr:contains(., 'YOUR_ASSET_PATH')]    

    1. Replace YOUR_ASSET_PATH with the path of the asset you want to check.





Avatar

Level 9

@Kummari_DilipKu : You can try with this as well: https://kiransg.com/2022/03/26/broken-asset-references-aem/

Note: This is based on understanding that whichever asset is referenced would be published as well when the page which is referencing/using them is activated.

If an asset is not referenced, it would never get published unless you manually publish it for some reason.
thanks.