dfa1234 / ngx-image-compress

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

Compress Image with Max Size without use upload #107

Closed pj-alvarado10 closed 1 month ago

pj-alvarado10 commented 1 year ago

I need to compress an image and get compressed image with a max size. I have the image uploaded before, then I can not use uploadAndGetImageWithMaxSize(), then I use directly the function compressFile() but the last one doesn't have the option to put a max size like function parameter.

Is there a way to just call the file compression function but with a maximum final file size, without calling an upload function?

Thank you.

LCseniordev commented 1 year ago

Same for me. We have a dropzone and then crop functionality before compression.

Can you please advice on how to achieve Max Size compression in that flow?

Thanks in advance!

dfa1234 commented 10 months ago

The only complication is to define what will be the input for the this compress function. If the upload is done externally, or using the upload function from the library? Maybe we need to support both

mer30boy commented 8 months ago

I also have a similar need. After uploading the photo, we perform a series of different processing operations and finally we need to compress it to the maximum size. When do you think this feature will be available? Thanks in advance!

jaimink commented 3 months ago

Waiting for this feature update. Any estimated timeline?

dfa1234 commented 3 months ago

Waiting for this feature update. Any estimated timeline?

It's asked multiple times, so let say by the end of the week

webdevrepo commented 1 month ago

Waiting for this feature update. Any estimated timeline?

It's asked multiple times, so let say by the end of the week

Looking forward to hear an update on this..

dfa1234 commented 1 month ago

missed last time. should have been done 1 month ago. This week for sure 😎

webdevrepo commented 1 month ago

Hey David, @dfa1234 anything new now. Im sure you have a lot of things to do, but it would be really great to see an update here.

dfa1234 commented 1 month ago

Yes this is in progress and published by today

dfa1234 commented 1 month ago

Code is being published, version 18.1.2

If someone in the thread feel like helping, please raise a flag is anything broke or something, I went on "yolo mode" for this one, with little test to speed up.