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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1747558

Title:
  JPG photo not viewable via default image viewer, but opens fine via
  Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpicview/+bug/1747558/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to