Skip to content

dominictarr/exif-orientation-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exif-orientation-lite

a tiny library 1k that only bothers with exif orientation

yeah there where a bunch of other exif libraries, but they are all complicated and we don't actually care about exif, we just want images to be the right way up!

example

var getOrientation = require('exif-orientation-lite')
var i = getOrientation(require('fs').readFileSync(image_jpg))

//machine readable orientation descriptions
console.log(require('exif-orientation-lite/machine')[i])

//human readable orientation descriptions
console.log(require('exif-orientation-lite/human')[i])

command

for testing you can also install -g exif-orientation-lite and then do exif-orientation-lite images*.jpg a list of files and their orientations will be output.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published