Socket
Socket
Sign inDemoInstall

exif-rotate-js

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exif-rotate-js

When you use input file, you can see preview images.


Version published
Weekly downloads
1.3K
decreased by-20.83%
Maintainers
1
Weekly downloads
 
Created
Source

exif-rotate-js

When you use input file, you can see preview images.

WHAT'S THIS MODULE

  • preview on file upload images.
  • use file API, correct to mobile.
  • resize image's file size and size.

HOW IT'S WORKS

npm install exif-rotate-js
var ExifRotate = require('exif-rotate-js');
ExifRotate.showPreviewImage(img, {
  max_size: 700,
});

👆show detail sample.js

<div id="{options.default_container_id}">
  here is uploaded images
</div>
<input type="file" id="#sum_id" multiple> <!-- can use multiple -->

METHODS

NameArgumentDescription
showPreviewImageimg, ObjectPreview images
getBase64Stringimg, ObjectGot encoding base 64 string

OPTIONS

See lib/configs.js

max_size

  • Type: number
  • Default: 720

This is max image size.

default_container_id

  • Type: string
  • Default: container

This is container element id.

Keywords

FAQs

Package last updated on 05 Oct 2016

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