brendan-duncan / image

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

Can not decode PNG file on Samsung Galaxy S7 and S10 #613

Closed hnvmeta closed 8 months ago

hnvmeta commented 8 months ago

When I decode this image, it returns null image. 1706696637862

brendan-duncan commented 8 months ago

Seems to be a non-standard PNG, it doesn't have a PNG file signature. I'm not sure what it is. Obviously other programs can open it, so I must be missing something.

brendan-duncan commented 8 months ago

Ah, it really is not a PNG at all. It's a JPG. Use decodeJpg.

hnvmeta commented 8 months ago

Maybe when i upload to Github, Github compresses it to JPG. I will zip it and upload again.

Vào Th 5, 1 thg 2, 2024 lúc 11:43 Brendan Duncan @.***> đã viết:

Ah, it really is not a PNG at all. It's a JPG. Use decodeJpg.

— Reply to this email directly, view it on GitHub https://github.com/brendan-duncan/image/issues/613#issuecomment-1920503061, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG7XSJKP5EOGYBVZOKQSK3YRMMO5AVCNFSM6AAAAABCUFBMFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGUYDGMBWGE . You are receiving this because you authored the thread.Message ID: @.***>