ios-photo-repair
v1.1.1
Published
An IOS Photo Direction Repair Tool
Downloads
14
Readme
English | 中文
ios-photo-repair
An IOS Photo Direction Repair Tool
Features
Simple and direct, two methods to solve two kinds of repair requirements in WEB environment
Getting started
- install with npm:
npm i ios-photo-repair --save
- import to your project
let { fixBySelector, fixImgFile } = require("ios-photo-repair")
- Fix the image file obtained by
input:type=file
// fixImgFile(file, compressOption)
fixImgFile(file, {
width:500, // default unlimited
height:500, // default unlimited
ratio: 0.92 // default no compression
}).then(base64 => {
document.getElementById('iosphoto').src = base64
})
Or, fix an img element
//fixBySelector(querySelector)
fixBySelector('#iosphoto')
License
MIT