1.1.1 • Published 3 years ago

ios-photo-repair v1.1.1

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

English | 中文

ios-photo-repair

npm compatibility license

An IOS Photo Direction Repair Tool

Features

Simple and direct, two methods to solve two kinds of repair requirements in WEB environment

Getting started

  1. install with npm:
npm i ios-photo-repair --save
  1. import to your project
let { fixBySelector, fixImgFile } = require("ios-photo-repair")
  1. 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

1.1.1

3 years ago

1.1.0

3 years ago

1.0.12

3 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago