Expand my Community achievements bar.

SOLVED

Filter.xml and source controlled DAM assets

Avatar

Level 5

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.

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Level 9

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

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.

Avatar

Community Advisor

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.

 
 


Arun Patidar