asset-share-commons icon indicating copy to clipboard operation
asset-share-commons copied to clipboard

Specific missing image based on filetype.

Open RahulMohann opened this issue 2 years ago • 1 comments

Hi,

I know there is a missingImage feature that can be used as a common thumbnail for all assets that doesn't have 319.319 rendition. Is there a way where we can use specific missing image based on the file type? For example, for a zip file, we need to show zip.png as the missing thumbnail where as for a docx file, we need to show docximg.png as missing thumnail image.

Thanks, Rahul

RahulMohann avatar Sep 04 '23 13:09 RahulMohann

Is this for the downloads or displaying on web page?

If on a web page, you could always make a new custom computed property that looks like (or even overrides w/ a higher service ranking) [1] .. that determines if the rendition youtre trying to load exists, and if not, shows whatever fallback image based on your customer logic.

[1] https://github.com/adobe/asset-share-commons/blob/develop/core/src/main/java/com/adobe/aem/commons/assetshare/content/properties/impl/AssetRenditionImpl.java

davidjgonzalez avatar Nov 22 '23 15:11 davidjgonzalez