![]() Trying to force the image quality to 0% doesn't actually shrink the file size. In summary, you can reduce the file size of an image by more than half without much of a visible difference. ![]() I did a little test to see how much various values effect the size of the image: The benefit to this approach is that it's built into the image_picker package and is therefore incredibly easy to use. This property takes a value between 0 and 100 and represents a percentage of the original image quality. The TLDR is that the flutter_image_compress package shrinks files much more than the ImagePicker class can itself.Īs others have suggested, you can use the built in imaqeQuality property from ImagePicker to compress the image. ![]() Here's a breakdown of the potential solutions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |