lisen87 / image_pickers

图片多选并压缩,保存图片到相册,视频多选,预览图片和视频
Apache License 2.0
90 stars 59 forks source link

It would be nice if I leaked out how to compress the picture #135

Open peng093 opened 11 months ago

peng093 commented 11 months ago

There is a scene that the picture is shared into the app in the system, at this time you need to re-use the image compression library, which is more troublesome, if the library exposes the compression method, it is good

lisen87 commented 11 months ago

ImagePickers.pickerPaths( galleryMode: GalleryMode.image,

              /// 压缩到 大约 500KB 左右
                  compressSize: 500,

                )

试试这个属性

peng093 commented 10 months ago

ImagePickers.pickerPaths( galleryMode: GalleryMode.image,

              /// 压缩到 大约 500KB 左右
                  compressSize: 500,

                )

试试这个属性

我的图片地址是在系统分享传进来的,如果能提供一个方法传入图片地址,返回压缩图片地址就好了