Open jonahwilliams opened 5 years ago
Seems to depend on #26194
@jonahwilliams We recently introduced a quality parameter to ask image picker to return a lower quality image. With the combination of quality and width and height, one can avoid OOM when using image_picker. Do you think we can close this issue? The PR: https://github.com/flutter/plugins/pull/1896
@cyanglaz I don't think so... The most want to save a full quality image, and managing it, but showing a preview that is not 10+MB... In any way, I've tried a lot this new feature but I cannot get it working. In my case work only the maxHeight and maxSize. Taking the same foto with the Quality parameter set to 1 and to 100, both in gallery or camera, I get the same size of photo with a difference of +-5kb.
Un-assign myself from this issue as I don't have cycle to actively working on it.
I still think the original request is a good request. I now have to generate thumbnails somewhere else instead of the package that could have done it. Cool package still.
I think that would be an awesome feature to add, especially for videos.
Need this feature very much to get rid of extra step compressing image
Since the image_picker returns the full resolution images and flutter doesn't automagicly shrink images based on the rendered size, it is easy to trigger OOM/memory pressure when using the returned images. (See https://github.com/flutter/flutter/issues/21571). Regardless of the decisions we make regarding OOM handling for images, it would be nice if the image_picker could also generate much smaller thumbnails to make it easy to avoid loading the full size images.
Example: