You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Format error decoding Png: Invalid PNG signature. #3079
I made a screenshot by Weixin(version 微信 3.9.8.25, I don't know whether wechat is different from weixin) and store it as an png file(the default format of screenshot in WeChat screenshot) and use image function to show this file. The image is as follows.
Activity
JalinWang commentedon Dec 27, 2023
Did you take another screenshot and then try it again?
Lslightly commentedon Dec 27, 2023
The image above is generated by WeChat. It doesn't work, either. But images generated by windows11 screenshot are valid.
JalinWang commentedon Dec 27, 2023
It seems like a JFIF(JPG) picture 🤔 https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format
Lslightly commentedon Dec 28, 2023
that's it. Thank you very much. The default format of WeChat screenshot to be saved is png but actually the file format is jpg.
I use
file 2.pngand the result is as follows: