

Typically a lossy compression will result in tremendous file size reduction at the cost of minor visual clarity at very high resolutions. The effect is nearly invisible but it makes a very large difference in file size!” By selectively decreasing the number of colors in the image, fewer bytes are required to store the data. Fortunately for me, I have a team to help me assemble content, so it’s inevitable that lots of media will be uploaded by a variety of people, some of which may not be optimized for web.Īccording to TinyPNG, they use “smart lossy compression techniques to reduce the file size of your PNG files. That’s what TinyPNG does, and it does it well. Any time I upload an image to the Sitecore CMS, I try to make sure it’s optimized. TinyPNG ( ) is a site I visit pretty frequently in my day-to-day activities as a Sitecore Developer. Introducing TinyPNG for optimizing images The solution I want to show you today involves optimizing images in Sitecore with PowerShell and TinyPNG. No one wants to manually fix 500 images in production via downloading, optimizing, and re-attaching (looking at you, Ben). This issue comes up from time to time, so it’s important to know how to resolve it before it’s too late. Did you ever run Google PageSpeed Insights on your website and get a violation for not optimizing your images? I did, so I figured out how to fix it in a pretty painless manner.
