Comment 10 for bug 1747558

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

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");

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
user@lubuntu:~$ apt-cache depends chromium-browser | grep libjpeg
user@lubuntu:~$ apt-cache depends google-chrome-stable | grep libjpeg

So, my conclusion it's that the error appears as a warning when using libjpeg8 and the viewer/editor should manage it.