Socket
Socket
Sign inDemoInstall

exif-orientation-examples-sr

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    exif-orientation-examples-sr

JPEG images and generation scripts for testing exif orientation


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
4.58 MB
Created
Weekly downloads
 

Readme

Source

EXIF Orientation-flag example images

Example images using each of the EXIF orientation flags (1-to-8), in both landscape and portrait orientations.

[FORKED by SR] - publishing to npm so can consume for dev-testing.

See here for more information.

Generating your own images

If you would like to generate test images based on your own photos, you can use the generate.rb script included in the generator folder.

The instructions below assume you are running on macOS - if not, you will need to install the Ghostscript fonts (brew install gs) some other way.

To install the dependencies:

> brew install gs
> cd generator
> gem install bundler
> bundle install

To generate test images:

> cd generator
> ./generate path/to/image.jpg

This will create images image_1.jpg through to image_8.jpg.

Re-generating sample images

Simply run make to regenerate the included sample images. This will download random portrait and landscape orientation images from unsplash.com and generate sample images for each of them.

Generating these images depends on having the generator dependencies installed - see the Generating your own images section for instructions on installing dependencies.

Credits

Change history

  • Version 2.0.0 (2017-08-05) : Add a script to generate example images from the command line.
  • Version 1.0.2 (2017-03-06) : Remove Apple Copyrighted ICC profile from orientations 2-8 (thanks @mans0954!).
  • Version 1.0.1 (2013-03-10) : Add MIT license and some contact details.
  • Version 1.0.0 (2012-07-28) : 1.0 release.

Contributing

Once you've made your commits:

  1. Fork exif-orientation-examples
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

Author

Dave Perrett :: hello@daveperrett.com :: @daveperrett

These images are licensed under the MIT License.

Copyright (c) 2010 Dave Perrett. See License for details.

Keywords

FAQs

Last updated on 06 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc