flutter_image_compress icon indicating copy to clipboard operation
flutter_image_compress copied to clipboard

sometimes compressed images are larger than the original

Open Fnalsk opened this issue 3 years ago • 4 comments

usually this happens with images of size ~500kb

~~kind of renders this package useless if "compressing" an image can end up making it larger...in fact the resulting image is often lower quality~~

after looking at this topic a bit more i realize that my above comment isnt valid.

Although it'd be appreciated if someone could share workarounds that they've tried to get around this issue as it does occur quite often

Fnalsk avatar Apr 19 '21 22:04 Fnalsk

Any update on this one? recently i have faced and issue where after compressing, the images are heavier and i noticed that the image was modified on width and length and also in it's color depth (from 24 bits to 32). It appears to be happen randomly and i can't really replicate the issue

SmearyQuill avatar May 11 '22 06:05 SmearyQuill

Hey, facing the same problem, any updates ? I'm testing on iPhone X:

  • The first compressed image is larger by approximatively 5%
  • The second one by 7% of the first compressed image
  • After that, it takes each time 0.3%

On Android however, it looks like it is working properly

jeff-odopass avatar Jun 03 '22 09:06 jeff-odopass

Same problem here. I've used all methods the package provides to compress images, but it didn't work. The "compressed" images still came larger than original.

LucasLima939 avatar Jun 20 '22 13:06 LucasLima939

Same problem here. I've used all methods the package provides to compress images, but it didn't work. The "compressed" images still came larger than original.

are you providing a minHeight value? i removed the min values and that seemed to fix the problem

SmearyQuill avatar Jun 20 '22 16:06 SmearyQuill