icapps / flutter-custom-image-crop

A flutter package to support a customizable image cropper.
MIT License
43 stars 35 forks source link

Too slow cropping and result is too big #51

Open appach22 opened 5 months ago

appach22 commented 5 months ago

Trying to crop a 5Mb jpeg image leads to 10 secs. cropping process and the resulting file size if about 50Mb. If I crom a small jpeg image (about 80Kb) then the process is fast but still have large output (about 1.7Mb). It seems like the the library firs makes a raw bitmap then crops it and again returns an uncompressed bitmap. Would be great if output file is compessed with the same format and quality as the input image. And for sure cropping process itself should be speed up.

peter100u commented 5 months ago

I also encountered this issue. The first one to use this library was the original file size of 451.41kb, but after completing the task, it was 1.3mb, which is obviously unreasonable. By the way, its size is also larger than the original file

ikbendewilliam commented 4 months ago

Our focus currently is on the customisability and getting images the same size. Feel free to look into speeding it up and creating a PR 🙂. I myself have no experience in optimising/compessing images 😬.

chengwei88888 commented 1 month ago

我也遇到了这个问题。第一个使用这个库是451.41kb的原始文件大小,但在完成任务后,是1.3mb,这显然是不合理的。顺便说一下,它的大小也比原始文件

怎么解决的这个问题呢?

peter100u commented 1 month ago

我也遇到了这个问题。第一个使用这个库的原始文件大小是451.41kb,但是在完成任务后,是1.3mb,这显然是不太合理的。顺便说一下,它的大小也比原始文件大

这个问题怎么解决呢?

我现在并没有解决。。。。