Open brunoadacosta opened 3 years ago
Code Example
params = { pngout: false, advpng: false, jhead: false, jpegtran: false, jpegrecompress: false, svgo: false, optipng: false, pngquant: false, jpegoptim: { allow_lossy: true, max_quality: 85 }} ImageOptim.new(params).optimize_image!("/tmp/image.jpg")
You need to enable jhead worker, as otherwise orientation flag is removed without transforming image data.
jhead
Code Example