ngx-image-compress icon indicating copy to clipboard operation
ngx-image-compress copied to clipboard

Compress Image with Max Size without use upload

Open pj-alvarado10 opened this issue 1 year ago • 5 comments

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.

pj-alvarado10 avatar Aug 03 '23 04:08 pj-alvarado10

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!

LCseniordev avatar Aug 03 '23 13:08 LCseniordev

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

dfa1234 avatar Nov 09 '23 10:11 dfa1234

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!

mer30boy avatar Dec 30 '23 11:12 mer30boy

Waiting for this feature update. Any estimated timeline?

jaimink avatar Jun 07 '24 19:06 jaimink

Waiting for this feature update. Any estimated timeline?

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

dfa1234 avatar Jun 10 '24 07:06 dfa1234

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..

webdevrepo avatar Jul 15 '24 05:07 webdevrepo

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

dfa1234 avatar Jul 16 '24 13:07 dfa1234

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.

webdevrepo avatar Jul 22 '24 03:07 webdevrepo

Yes this is in progress and published by today

dfa1234 avatar Jul 22 '24 06:07 dfa1234

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.

dfa1234 avatar Jul 22 '24 08:07 dfa1234