-
I have two instances that are pulling an image from the same bucket, but are compressing them differently. One is a legacy 2019 era install and the second is a more version 6.2.5. The file size in the bucket is 1,500kb as reflected in the second example below. In this example on a 2019 install I have a .png that outputs files in these sizes:
These are the sizes on the 6.2.5 install and has the following outputs
It seems like the 2019 install outputs a smaller file size across the board. With the webp filter it is more comparable, and with just a .png resize it is pretty dramatically different. Wondering if other have had a similar experience and if there are more tips for optimizing files on a newer installs compared to older. I would just use the 2019 install, but I do want a feature on the newer install, so wondering if there are more setting to optimize compression. Any insights would be welcome and much appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @jgrims91, Do you happen to have the version of the old install? You should be able to find it towards the end of the description of the CloudFormation stack. Thanks, |
Beta Was this translation helpful? Give feedback.
Hi @jgrims91, Yep that's perfect, looks like you're running V2.0.0.
The main factor here is that versions prior to v4 use Thumbor to provide image processing, while versions v4+ use the npm package Sharp to process images. While I haven't personally worked with Thumbor, it appears that it provides some default processing/compression of images to reduce their size.
After some investigation on the Sharp side, it does appear that the default quality for PNGs is 100 (unlike for many other file types, which is why you didn't see this issue when converting to WebP), so this issue would be exacerbated when using PNGs. If you have a chance, I'd be interested to know what sort of size differences …