kamsar / Dianoga

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

Add optional -progressive parameter #13

Closed davidpiendl closed 7 years ago

davidpiendl commented 8 years ago

Hi,

is it possible to add "-progressive" (or other parameters for jpegtran) as an option to the command line parameters, which can be set via the XML Config?

Best regards David

kamsar commented 7 years ago

You're welcome to contribute that addition. See https://github.com/kamsar/Dianoga/blob/3.0/src/Dianoga/Optimizers/Pipelines/DianogaJpeg/MozJpegOptimizer.cs

This is loaded via the Sitecore Factory here, so parameters could be mapped as properties: https://github.com/kamsar/Dianoga/blob/3.0/src/Dianoga/Default%20Config%20Files/Dianoga.Jpeg.config#L25

victorantos commented 7 years ago

Will this PR solve the above issue? https://github.com/kamsar/Dianoga/pull/17

kamsar commented 7 years ago

"Probably" :)

kamsar commented 7 years ago

@victorantos' PR to add this is in 3.0.3-beta01 for testing. Give it a shot!

kamsar commented 7 years ago

This is fixed in 3.1