Filter.xml and source controlled DAM assets | Community
Skip to main content
Level 4
March 4, 2025
Solved

Filter.xml and source controlled DAM assets

I have a minimal amount of DAM assets under source control (~30 images). These correspond to some "test" content that is used for the local development loop- basically a handful of pages and components that always deploy out on every compilation.

 

I am noticing that every image under source control actually gets quite a few renditions. Is it safe to omit these from source control, or are they required for the system to function properly?  Will they be regenerated automatically or leave everything in a semi broken state?

 

For example, let's say I have a file: icon.png. This is resulting in the following source control structure:

  • /dam/icon.png/.content.xml
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.48.48.png
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.48.48.png/.content.xml
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.140.140.png
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.140.140.png/.content.xml
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.319.319.png
  • /dam/icon.png/_jcr_content/renditions/cq5dam.thumbnail.319.319.png/.content.xml
  • /dam/icon.png/_jcr_content/renditions/cq5dam.web.1280.1280.png
  • /dam/icon.png/_jcr_content/renditions/cq5dam.web.1280.1280.png/.content.xml
  • /dam/icon.png/_jcr_content/renditions/original.dir
  • /dam/icon.png/_jcr_content/renditions/original

I am wondering if it's ok to update my filterxml to simply skip source controlling anything with "cq5dam" in the path.

konstantyn_diachenko
konstantyn_diachenkoAccepted solution
New Participant
March 4, 2025

Hi @dylanmccurry,

 

It depends how are you using these images, but I would suggest just to leave original rendition (/dam/icon.png/_jcr_content/renditions/original and /dam/icon.png/_jcr_content/renditions/original.dir).

 

Usually, it's enough.

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin

2 replies

arunpatidar
New Participant
March 5, 2025

Hi @dylanmccurry 

I'm not sure which filter mode you're using to deploy those assets from code.

Renditions serve various purposes in AEM, such as title icons, preview images, etc.

If you don’t want to deploy renditions from code, you can let AEM generate them automatically with each deployment through the DAM Asset Update workflow, which runs whenever assets are updated.

 
 
Translate
Arun Patidar
konstantyn_diachenko
konstantyn_diachenkoAccepted solution
New Participant
March 4, 2025

Hi @dylanmccurry,

 

It depends how are you using these images, but I would suggest just to leave original rendition (/dam/icon.png/_jcr_content/renditions/original and /dam/icon.png/_jcr_content/renditions/original.dir).

 

Usually, it's enough.

 

Best regards,

Kostiantyn Diachenko.

Translate
Kostiantyn DiachenkoCheck out AEM VLT Intellij plugin