Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-exif-orientation

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-exif-orientation

Canvas drawImage dependent on Exif Orientaion

  • 0.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7.2K
increased by5.66%
Maintainers
1
Weekly downloads
 
Created
Source

Canvas Exif Orientation

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);

install

npm install canvas-exif-orientation

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)

1

The 0th row is at the visual top of the image, and the 0th column is the visual left-hand side.

1

2

The 0th row is at the visual top of the image, and the 0th column is the visual right-hand side.

2

3

The 0th row is at the visual bottom of the image, and the 0th column is the visual right-hand side.

3

4

The 0th row is at the visual bottom of the image, and the 0th column is the visual left-hand side.

4

5

The 0th row is the visual left-hand side of the image, and the 0th column is the visual top.

5

6

The 0th row is the visual right-hand side of the image, and the 0th column is the visual top.

6

7

The 0th row is the visual right-hand side of the image, and the 0th column is the visual bottom.

7

8

The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom.

8

Keywords

FAQs

Package last updated on 16 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc