dfa1234 / ngx-image-compress

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

Expose fileToDataURL Api publicaly #92

Closed Gjuju closed 1 month ago

Gjuju commented 2 years ago

Hello. I use compress method directly and don't use your upload method, instead i use classic file input and a custom drag and drop directive. So i must convert File to DataUrl before compressing it.

If you can make your fileToDataURL method available in the api it will be great and saves me to externalize your method.

best regards

EDIT // i forgot to mention that i use the legacy build in angular 9.

dfa1234 commented 1 month ago

Please use now version npm install ngx-image-compress@8.12.2

I will give you want you need