onurzorluer / react-image-file-resizer

Resize Local Images with React 🌄 🌅
MIT License
313 stars 41 forks source link

TypeScript refactor, fix exact sizing #96

Open peacechen opened 2 months ago

peacechen commented 2 months ago

Fixes https://github.com/onurzorluer/react-image-file-resizer/issues/94

Additionally:

This PR refactors the code as properly typed functions. The parameters are in a single options argument instead of multiple arguments. The TypeScript definition file is automatically generated. The major version was bumped due to breaking changes in the function signature.

Also addresses https://github.com/onurzorluer/react-image-file-resizer/pull/93 , https://github.com/onurzorluer/react-image-file-resizer/pull/78 , https://github.com/onurzorluer/react-image-file-resizer/issues/62, and https://github.com/onurzorluer/react-image-file-resizer/issues/50.

The code in this PR has been published as @peacechen/react-image-file-resizer pending merge.