brendan-duncan / image

Dart Image Library for opening, manipulating, and saving various different image file formats.
MIT License
1.14k stars 255 forks source link

PNG fails to decode with latest file_picker #641

Closed danemadsen closed 3 months ago

danemadsen commented 3 months ago

When used with the latest version of file_picker, decodePng and decodePngFile fail to decode the image on all platforms

brendan-duncan commented 3 months ago

I don't know anything about file_picker, but there hasn't been any issues with decoding PNG in this library that I'm aware of.

danemadsen commented 3 months ago

This was just related to allowCompression in file_picker. If allowCompression=true (which it is by default) decodePng and more broadly decodeImage fails to decode the image and returns null. In any case, it wasn't this projects problem and the issue is now solved.