The string "Premature end of JPEG file" showed by gimp and imagemagick utilities (identify, convert) is present on libjpeg8 code (taken from http://ijg.org/files/)
user@lubuntu:~/Downloads/jpeg-8d$ grep Premature *
cderror.h:JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
cderror.h:JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
jerror.h:JMESSAGE(JERR_INPUT_EOF, "Premature end of input file")
jerror.h:JMESSAGE(JWRN_JPEG_EOF, "Premature end of JPEG file")
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
The string "Premature end of JPEG file" showed by gimp and imagemagick utilities (identify, convert) is present on libjpeg8 code (taken from http:// ijg.org/ files/)
user@lubuntu: ~/Downloads/ jpeg-8d$ grep Premature * h:JMESSAGE( JWRN_GIF_ ENDCODE, "Premature end of GIF image") h:JMESSAGE( JERR_RLE_ EOF, "Premature EOF in RLE header") h:JMESSAGE( JERR_INPUT_ EOF, "Premature end of input file") h:JMESSAGE( JWRN_JPEG_ EOF, "Premature end of JPEG file")
cderror.
cderror.
jerror.
jerror.
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
rdjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
wrjpgcom.c: ERREXIT("Premature EOF in JPEG file");
Most of viewers/editors use libjpeg8:
user@lubuntu:~$ apt-cache depends libmagickcore- 6.q16-2 | grep libjpeg
Depends: libjpeg8
user@lubuntu:~$ apt-cache depends eog | grep libjpeg
Depends: libjpeg8
user@lubuntu:~$ apt-cache depends gpicview | grep libjpeg
Depends: libjpeg8
user@lubuntu:~$ apt-cache depends gimp | grep libjpeg
Depends: libjpeg8
user@lubuntu:~$ apt-cache depends mtpaint | grep libjpeg
Depends: libjpeg8
user@lubuntu:~$ apt-cache depends libreoffice-core | grep libjpeg
Depends: libjpeg8
But browsers don't use it:
user@lubuntu:~$ apt-cache depends firefox | grep libjpeg chrome- stable | grep libjpeg
user@lubuntu:~$ apt-cache depends chromium-browser | grep libjpeg
user@lubuntu:~$ apt-cache depends google-
So, my conclusion it's that the error appears as a warning when using libjpeg8 and the viewer/editor should manage it.