Takes an image and resizes it to given size, uses pica.js
ember install image-resize-util
imageResize(file: File, {
maxWidth: Number = 800,
maxHeight: Number = 600,
keepRatio: Boolean = true
}, resizeOptions: PicaOptionsObject) => Promise(Blob)
git clone <repository-url>
cd image-resize-util
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.