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
Touch seeded packages, which is subscribed to libjpeg-turbo in Ubuntu.
https://bugs.launchpad.net/bugs/1747558

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

Status in gpicview package in Ubuntu:
  New
Status in libjpeg-turbo package in Ubuntu:
  New
Status in libjpeg8 package in Ubuntu:
  New
Status in mtpaint package in Ubuntu:
  Confirmed

Bug description:
  Using Lubuntu i386 daily build downloaded approx 36hours ago.

  In documenting a separate bug, I took a photo via the inbuilt camera
  in my Nokia dumbphone. Low-res, small image size. Transferred from
  phone & saved to desktop.

  Opening that JPG in Image Viewer brings up the error message "Error
  interpreting JPEG image file (Application transferred too few
  scanlines)", yet the image is perfectly viewable in Firefox.

  Have attached the JPG in question to this bug report - the contents of
  this photo are also relevant to Bug 1747341.

  Thanks,
  Ken.
  ***

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to