Invalid PNG Image file: iDOT doesn't point to valid IDAT chunk

前端 未结 6 1916
北海茫月
北海茫月 2021-02-13 22:22

I have some HTML content pages in an app and I\'m using a UIWebView to display them. Some of these pages have a PNG image in them that is generating the following message in th

6条回答
  •  醉酒成梦
    2021-02-13 22:34

    I had the same problem with my app.It turn out that the images that the user was uploading to my server and edited with php +imagemagik where striped out.I was using the following command to edit the uploaded image:

    convert $uploadfile -resize 300x300 -quality 30 -strip $uploadfile
    

    When i removed the -strip parameter the error was disappeared !

提交回复
热议问题