edalex
Posts: 87
Joined: Fri Mar 03, 2017 6:45 pm

Corrupted Image Files

Fri Feb 02, 2018 11:51 am

Hi all.
I was confused why some fanart is not loadin in my plugin so i checked my local image files cache with ImageMagick.
Here are the results:

Code: Select all

identify *.jpg >1.txt
identify: Premature end of JPEG file `02gtox1514467274.jpg' @ warning/jpeg.c/JPE
GWarningHandler/364.
identify: Corrupt JPEG data: premature end of data segment `02gtox1514467274.jpg
' @ warning/jpeg.c/JPEGWarningHandler/364.
identify: Premature end of JPEG file `7lkcyx1514468155.jpg' @ warning/jpeg.c/JPE
GWarningHandler/364.
identify: Corrupt JPEG data: premature end of data segment `7lkcyx1514468155.jpg
' @ warning/jpeg.c/JPEGWarningHandler/364.
identify: Premature end of JPEG file `spxqpx1463225339.jpg' @ warning/jpeg.c/JPE
GWarningHandler/364.
identify: Corrupt JPEG data: premature end of data segment `spxqpx1463225339.jpg
' @ warning/jpeg.c/JPEGWarningHandler/364.
identify: Premature end of JPEG file `wqrtsr1421443672.jpg' @ warning/jpeg.c/JPE
GWarningHandler/364.
identify: Corrupt JPEG data: premature end of data segment `wqrtsr1421443672.jpg
' @ warning/jpeg.c/JPEGWarningHandler/364.

identify *.png >2.txt
identify: iCCP: extra compressed data `yuwpyx1447598632.png' @ warning/png.c/Mag
ickPNGWarningHandler/1705.

User avatar
zag
Site Admin
Posts: 762
Joined: Tue Oct 11, 2016 9:43 am

Re: Corrupted Image Files

Fri Feb 02, 2018 4:30 pm

Great, yep corrupt JPG are always a problem. Just let me know any you find and I will fix.

Alternatively, just upload yourself with them fixed ;)

edalex
Posts: 87
Joined: Fri Mar 03, 2017 6:45 pm

Re: Corrupted Image Files

Mon Feb 05, 2018 10:41 pm

I'm so sorry. My bad :oops:
That were partially downloaded fanarts because they were too big to download (>1 MB). Actually, I have 900000 bytes limit somewhere and I don't understand where exactly. :cry:
So probably it's my codes's issue and files itselves are okay :roll:

User avatar
zag
Site Admin
Posts: 762
Joined: Tue Oct 11, 2016 9:43 am

Re: Corrupted Image Files

Tue Feb 06, 2018 1:02 pm

I can re-sample any larger jpeg files, infact that is a good idea to do now.

But of course more may be uploaded in the future, so best to update your code to accommodate.

edalex
Posts: 87
Joined: Fri Mar 03, 2017 6:45 pm

Re: Corrupted Image Files

Tue Feb 06, 2018 4:42 pm

zag wrote:I can re-sample any larger jpeg files, infact that is a good idea to do now.

Nah, 2 MB files are fine for me personally.
zag wrote:But of course more may be uploaded in the future, so best to update your code to accommodate.

Yeah, I've found the issue. No corrupted images so far.

Return to “Artwork”