0 votes

Auto Auto Rotate

Dead simple image auto-rotation for Umbraco v8.x

Automatically runs ImageProcessor's AutoRotate, for fire-and-forget mobile image uploads.

Many images, especially those taken on mobile devices, are landscape in terms of actual pixel data but have their orientation set by EXIF data. Generally speaking this is a good thing, but the default configuration for ImageProcessor in Umbraco is to strip out the EXIF data and ignore it before resizing.

A portrait image at full size will look fine in the browser (the browser reads the EXIF data and knows what to do) but once it's processed by ImageProcessor it gets flipped back round to landscape.

As ImageProcessor's AutoRotate is already enabled by default, to fix it all we need to do is append &autrotate=true to the image URL. but that can be a bit of a faff to implement everywhere.

All this package does is hook into ImageProcessor's vaidation event add autorotate=true to every request.

If the parameter already appears in the querystring, either true or false, then it will not override it.


Package owner

Jason Elkin

Jason Elkin

Jason has 229 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.8.x (untested)
Version 8.7.x (untested)
Version 8.6.x (100%)
Version 8.5.x (untested)
Version 8.4.x (untested)
Version 8.3.x (untested)
Version 8.2.x (untested)
Version 8.1.x (untested)
Version 8.0.x (untested)
Version 7.15.x (untested)
Version 7.14.x (untested)
Version 7.13.x (untested)
Version 7.12.x (untested)
Version 7.11.x (untested)
Version 7.10.x (untested)
Version 7.9.x (untested)
Version 7.8.x (untested)
Version 7.7.x (untested)
Version 7.6.x (untested)
Version 7.5.x (untested)
Version 7.4.x (untested)
Version 7.3.x (untested)
Version 7.2.x (untested)
Version 7.1.x (untested)
Version 7.0.x (untested)
Version 6.2.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Jason Elkin
  • Created: 21/08/2020
  • Current version 1.0.0
  • .NET version 4.7.2
  • License MIT
  • Downloads on Our: 14
  • Downloads on NuGet: 140
  • Total downloads : 154