11ty / eleventy-img

Utility to perform build-time image transformations.
https://www.11ty.dev/docs/plugins/image/
436 stars 54 forks source link

Bake input orientation into output image #194

Closed GHF closed 8 months ago

GHF commented 1 year ago

The issue behind this and fix is basically the same as #158 but cleans up some of the approaches that led up to this—the big changes are

  1. rolling back some of the logic around calling sharp.rotate() and defaulting to just always calling it because it's designed to bake orientation as needed into the output (in lieu of passthrough metadata) and doing nothing if not needed
  2. adding an image diff test whose failure case demonstrates the need for orientation=3 processing (very common for iPhone photos)
zachleat commented 8 months ago

Same as #158 we’ll put this behind the fixOrientation opt-in option!

zachleat commented 8 months ago

Changed to v3.2.0