tucepi-rotate

Rotate and flip a jpeg buffer according to the exif orientation

Usage no npm install needed!

<script type="module">
  import tucepiRotate from 'https://cdn.skypack.dev/tucepi-rotate';
</script>

README

Simple function which rotates the images according to the exif.orientation value.

Accepts the following arguments:

  • image buffer or path
  • exif orientation value as number
  • (optional) return mime type

https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/

Why Tucepi

The whole family went on vacation and we had a wonderful week on the beaches of Tucepi, Croatia during October 2018. When I came home I realized i was missing this specific function for my