Highlighted

AEM 6.4 asset renditions, is it safe to remove 140x100 rendition?

yaraslaud208334

10-04-2019

By default DAM Update Asset  generate the following structure of renditions:

1730233_pastedImage_0.png

I have verified our request log, where I could see all renditions except 140x100 are used on authoring instance.

Is it safe to remove 140x100 rendition? Is it used by default AEM components? Is it safe to remove that rendition if we use only Touch UI?

Replies

Highlighted

Ravi_Pampana

MVP

10-04-2019

Hi,

Image renditions can be modified as per project need but the rendition 100*140 will be default for content finder thumbnail

The out of the box default image content finder has two views. Namely,

  • Masaic View:-  Uses the rendition 100*140
  • List View:-  Uses 48*48 rendition

The code is available in below file

/libs/cq/ui/widgets/source/widgets/wcm/ContentFinderTab.js

{code}

CQ.wcm.ContentFinderTab.THUMBS_URL = function(values, width, height) {

    width = (width ? width : 100);

    height = (height ? height : 140);

   

    //update thumbnail reference for sets

    if(values.mimeType.indexOf('Multipart/Related') == 0) {

values.path += '.folderthumbnail.jpg';

    }

   

    // encode path not in externalize - otherwise "#" in asset name or path is not encoded

    var externalized = CQ.HTTP.externalize(CQ.shared.XSS.getXSSValue(

            CQ.HTTP.encodePath(values.path)));

    externalized += ".thumb." + width + "." + height + (values.ck ? "." + values.ck : "")

            + ".png";

    return CQ.shared.HTTP.getXhrHookedURL(externalized);

};

{code}

Highlighted

yaraslaud208334

11-04-2019

Hello Vari,

As far as I know code provided by you is extJS code that is used only by classic UI.

As I could see 319x319 rendition is used in content finder for Touch UI:

1730800_pastedImage_0.png

--Yaraslau