Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After #optimize_image! the image is rotated #185

Open
brunoadacosta opened this issue Nov 19, 2020 · 1 comment
Open

After #optimize_image! the image is rotated #185

brunoadacosta opened this issue Nov 19, 2020 · 1 comment

Comments

@brunoadacosta
Copy link

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")
@toy
Copy link
Owner

toy commented Nov 19, 2020

You need to enable jhead worker, as otherwise orientation flag is removed without transforming image data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants