Skip to main content
14 votes

Improve image compression using Dianoga

Your comparison of Dianoga with the other tools isn't quite fair- though what you found is accurate. A few things to point out: Dianoga is lossless compression, which means as the size is reduced, ...
jrap's user avatar
  • 4,951
8 votes
Accepted

Dianoga - JPEGTrans locking resource during deployment

If you're on Dianoga 2.0.2 I would strongly recommend upgrading to the latest 3.x version. 3.x uses much safer integration methods, is more modular, uses more modern compression tools, and most ...
Kam Figy's user avatar
  • 4,153
6 votes
Accepted

Is it possible to run Dianoga in an Azure Web App?

I've used this for a while and can confirm that it works (up to SC 8.2). Furthermore, I just tested it and it still works with Sitecore 9 in PaaS. Once installed, look for Dianoga informational ...
maz's user avatar
  • 1,813
6 votes
Accepted

Clarification sitecore Dianoga Module

Yes. When media images are requested, Dianoga automatically runs mozjpeg, PNGOptimizer, nQuant, or SVGO on the image data immediately after it is placed in the Sitecore media cache. Dianoga ensures ...
Mark Cassidy's user avatar
  • 25.3k
5 votes
Accepted

Improve image compression using Dianoga

I decided to add my own lossy PNG optimizer using pngquant. It's relatively straight-forward to do so and makes a big difference to file size. If you'd like to use it, you can grab the source from my ...
Dan Sinclair's user avatar
  • 5,395
5 votes

Dianoga implementation issue on the Azure Paas

If the targetframework of the project is lesser than 4.5.2 then try to upgrade the target framework and reinstall the Dianoga from nuget https://www.nuget.org/packages/Dianoga/3.1.1 Also do check if ...
Waqar Haider's user avatar
4 votes
Accepted

Deployment of dianoga or dianoga.imagemagic to Test environment

The easiest way to deploy Dianoga is via nuget with your solution. As long as you add the Nuget package and your build pipeline is doing a Nuget restore as part of the deployment, then the resulting ...
George Tucker's user avatar
4 votes
Accepted

WebP format support with backward compatibility (support in IE, Safari)

Yes, your idea is correct. Problem is that Sitecore media request protection removes extra parameter extension that is required for Dianoga WebP to work. After adding extension to protected media ...
Anton's user avatar
  • 3,831
3 votes

Calculating dianoga's optimized image size?

Server-side, no - probably. Dianoga acts as a layer between the Sitecore Media Library and the caching mechanics. You can get the byte size of the images client-side however. Which would allow you to ...
Mark Cassidy's user avatar
  • 25.3k
2 votes

Improve image compression using Dianoga

Dianoga by default uses tools that offer lossless images compression. For example, for JPEGs, it uses the jpegtran tool. However in my recent project, after lossless Dianoga compression, Google's ...
Bartłomiej Mucha's user avatar
2 votes

SVGs files are not getting converted to WEBP format using Dianoga

If you look at the configs, you can see that there's no processor to optimize an SVG to a WebP, and if you look at the webp optimizer, it doesn't accept an SVG. This conversion seems like it would ...
MStodd's user avatar
  • 284
1 vote

Webp Image not generating when azure CDN enabled

If you are using Azure CDN (Microsoft) or Azure Front Door Classic with Azure CDN (Microsoft), Accept header is not passed to the Origin server. Dianoga needs Accept header to understand whether it ...
Nehemiah Jeyakumar's user avatar
1 vote

Dianoga image optimization error for few of the images

The error you are getting is because the file size is greater than the Media.MaxSizerInMemory default setting. This is set in your Sitecore.config like this: <!-- MEDIA - MAX SIZE IN MEMORY ...
Richard Seal's user avatar
  • 20.5k
1 vote
Accepted

Getting Dianoga to work with the jssmedia urls

For jss media you should override jss media handler and patch the same in the config public class ConvertImageToWebp : Sitecore.JavaScriptServices.Media.MediaRequestHandler{ protected override ...
Gayathri Sriram's user avatar
1 vote

Dianoga SVGO Additional Tool Arguments Syntax

Unfortunately, SVGOP was built with a preset list of plugins. And it is not possible to change svgop.exe behavior in runtime. What is possible is to build your own executable using pkg: //install svgo ...
Anton's user avatar
  • 3,831

Only top scored, non community-wiki answers of a minimum length are eligible