draw a image on a canvas dependent on Exif Orientation.
var CanvasExifOrientation = require('canvas-exif-orientation');
// drawn canvas element.
var canvas = CanvasExifOrientation.drawImage(img, orientation);
npm install canvas-exif-orientation
- http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
- http://www.cipa.jp/std/documents/j/DC-008-2012_J.pdf (Japanese)
The 0th row is at the visual top of the image, and the 0th column is the visual left-hand side.
The 0th row is at the visual top of the image, and the 0th column is the visual right-hand side.
The 0th row is at the visual bottom of the image, and the 0th column is the visual right-hand side.
The 0th row is at the visual bottom of the image, and the 0th column is the visual left-hand side.
The 0th row is the visual left-hand side of the image, and the 0th column is the visual top.
The 0th row is the visual right-hand side of the image, and the 0th column is the visual top.
The 0th row is the visual right-hand side of the image, and the 0th column is the visual bottom.
The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom.