dfa1234 / ngx-image-compress

Angular library for uploading and compressing images
https://image-library.app
MIT License
87 stars 36 forks source link

Is there a way to control the compression/size? #16

Closed theman0123 closed 4 years ago

theman0123 commented 4 years ago

Just curious if there's a way to manipulate size/quality. Thanks!

theman0123 commented 4 years ago

this.imageCompress .compressFile(image, orientation, 75, 75) .then(result => {// logic here}

the 75, 75 (height and width?) refers to image quality where 100 is not compressed...