kamsar / Dianoga

An automatic image optimizer for the Sitecore media library.
Other
102 stars 45 forks source link

Error in logs for Dianoga JPEG lossless optimization #114

Closed swthp closed 2 years ago

swthp commented 2 years ago

Version of Dianoga used is 5.4.1

Dev, QA

Config files enabled - Dianoga.DisableForSites.config, Dianoga.Jpeg.config , Dianoga.Log.config, Dianoga.Png.config, Dianoga.Svg.config Dianoga.Strategy.GetMediaStreamSync,

The image loads fine but there is error in the logs -

ERROR Dianoga: Unable to optimize ["Image path"] due to a processing error! It will be unchanged. Exception: System.InvalidOperationException Message: "~\App_Data\Dianoga Tools\mozjpeg\jpegtran.exe -progressive -outfile "C:\windows\TEMP\tmp9CE3.tmp" "C:\windows\TEMP\tmp9CE1.tmp"" exited with unexpected exit code 1. ###

What you expected to see, versus what you actually saw - errors in the logs related to JPEG

Dianoga logs

markgibbons25 commented 2 years ago

It means mozjpeg was unable to convert it. Possibly as its not a jpeg or its corrupted.