ericnograles / browser-image-resizer

A tiny browser-based library to downscale and/or resize images using canvas
MIT License
98 stars 42 forks source link

[Refactor + Fix]: Code Reorganization #38

Closed ericnograles closed 3 years ago

ericnograles commented 3 years ago

Summary

I'm going to "self high five" merge this, but I wanted to outline the main changes in this PR

Refactored File Structure

That one index.js was getting unruly. I've split off the functions to browser_operations, data_operations, and scaling_operations to help make contributing easy

Bye Yarn

Self-explanatory. Moving dependency management full to NPM.

Fixes Bugs

There were two major functional issues with the library: lack of support for multiple images at once and no rejections on errors. These have both been addressed.

Ships With a Test Web App

See the tests folder. This Vue CLI app can be used for local development for contributors using the method described in CONTRIBUTING

Adds MIT License

Addresses #37