Admin getImageThumbnailAction, format set to PNG, why?


#1

Hi,

Can anyone explain to me why the output format in Admin AssetController (getImageThumbnailAction | Line: 1176) is set to PNG? This leads to very long script runtimes and performance problems in certain situations (especially with large JPGs).

Thanks in adavance,
Erik


#2

This is because of the possibility of images containing transparency, like PNGs or SVGs.
If you can eliminate this possibility, because you’re only using JPG, you can set the format in your thumbnail configuration to JPEG and you’re fine :slight_smile: