It is currently Mon Sep 28, 2026 7:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 1:12 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
GIMP Version: 2.8.10
Operating System: Linux
GIMP Experience: Intermediate Level

List any ERROR messages you received:
xxx.jpeg : unsupported file format



Just wondering if there is an easy way to make gimp recognize jpeg files. I thought that it used to open them fine, but now I get an error msg. Just renaming the extension from jpeg to jpg works fine. I figured gimp would look at the actual header of the file instead of the extension.

Thanks

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 1:23 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4557
Location: Canada
i use 2.8.10 as well and it seems to open .jpeg fine. Maybe Linux is weird. I use windows.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 1:37 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
No such problem on my Linux, jpg, jpeg and JPG all open fine. What message do you get exactly?

_________________
Image


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 1:42 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
ofnuts wrote:
No such problem on my Linux, jpg, jpeg and JPG all open fine. What message do you get exactly?


I posted the error message in my original post.
anyfilename.jpeg : unsupported file format

I built 2.8.10 a while back, but I don't recall any errors. Everything else works fine so I'm stumped. =/

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 1:51 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Looks like I'm not alone. This seems to be the same thing.
http://www.gimpusers.com/forums/gimp-us ... ile-format
Will keep digging, was just hoping I was overlooking something obvious.

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 2:12 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Could you packing one of those problematic files (to zip or tar.gz) and share it here?

I renamed one jpg file to jpeg and it opens fine in GIMP 2.8.10, Kubuntu Linux.

My doubt is if the problem is with GIMP or it is a problem related with your Linux distribution and the file association. That error message you got with GIMP, or by double clicking on the file in file browser?

_________________
Image
Be patient, English is not my language.


Last edited by YAFU on Sun Jun 01, 2014 2:20 pm, edited 1 time in total.

Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 2:17 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
akovia wrote:
ofnuts wrote:
No such problem on my Linux, jpg, jpeg and JPG all open fine. What message do you get exactly?


I posted the error message in my original post.
anyfilename.jpeg : unsupported file format

I built 2.8.10 a while back, but I don't recall any errors. Everything else works fine so I'm stumped. =/

Check the pluginrc file in your Gimp profile. It should have:

(plug-in-def "/usr/lib/gimp/2.0/plug-ins/file-jpeg" 1386361952
    (proc-def "file-jpeg-load" 1
         "loads files in the JPEG file format"
         "loads files in the JPEG file format"
         "Spencer Kimball, Peter Mattis & others"
         "Spencer Kimball & Peter Mattis"
         "1995-2007"
         "JPEG image"
         0
        (icon stock-id -1 "")
        (load-proc
            (extension "jpg,jpeg,jpe")
            (magic "6,string,JFIF,6,string,Exif")
            (mime-type "image/jpeg")
            (thumb-loader "file-jpeg-load-thumb"))
         ""
         3 1
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 4 "filename" "The name of the file to load")
        (proc-arg 4 "raw-filename" "The name of the file to load")
        (proc-arg 13 "image" "Output image"))
    (proc-def "file-jpeg-load-thumb" 1
         "Loads a thumbnail from a JPEG image"
         "Loads a thumbnail from a JPEG image (only if it exists)"
         "Mukund Sivaraman <[email protected]>, Sven Neumann <[email protected]>"
         "Mukund Sivaraman <[email protected]>, Sven Neumann <[email protected]>"
         "November 15, 2004"
         ""
         0
        (icon stock-id -1 "")
         ""
         2 3
        (proc-arg 4 "filename" "The name of the file to load")
        (proc-arg 0 "thumb-size" "Preferred thumbnail size")
        (proc-arg 13 "image" "Thumbnail image")
        (proc-arg 0 "image-width" "Width of full-sized image")
        (proc-arg 0 "image-height" "Height of full-sized image"))
    (proc-def "file-jpeg-save" 1
         "saves files in the JPEG file format"
         "saves files in the lossy, widely supported JPEG format"
         "Spencer Kimball, Peter Mattis & others"
         "Spencer Kimball & Peter Mattis"
         "1995-2007"
         "JPEG image"
         0
        (icon stock-id -1 "")
        (save-proc
            (extension "jpg,jpeg,jpe")
            (mime-type "image/jpeg"))
         "RGB*, GRAY*"
         14 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "drawable" "Drawable to save")
        (proc-arg 4 "filename" "The name of the file to save the image in")
        (proc-arg 4 "raw-filename" "The name of the file to save the image in")
        (proc-arg 3 "quality" "Quality of saved image (0 <= quality <= 1)")
        (proc-arg 3 "smoothing" "Smoothing factor for saved image (0 <= smoothing <= 1)")
        (proc-arg 0 "optimize" "Optimization of entropy encoding parameters (0/1)")
        (proc-arg 0 "progressive" "Enable progressive jpeg image loading (0/1)")
        (proc-arg 4 "comment" "Image comment")
        (proc-arg 0 "subsmp" "The subsampling option number")
        (proc-arg 0 "baseline" "Force creation of a baseline JPEG (non-baseline JPEGs can't be read by all decoders) (0/1)")
        (proc-arg 0 "restart" "Interval of restart markers (in MCU rows, 0 = no restart markers)")
        (proc-arg 0 "dct" "DCT algorithm to use (speed/quality tradeoff)")))


In particular the bit that says (extension "jpg,jpeg,jpe")

_________________
Image


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 3:12 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
YAFU wrote:
Could you packing one of those problematic files (to zip or tar.gz) and share it here?

Well it is literally Any jpg file. If I name any file .jpeg, it won't open. Changing it to .jpg lets it work fine.

ofnuts wrote:
Check the pluginrc file in your Gimp profile. It should have:

(plug-in-def "/home/akovia/bin/gimp-2.8/lib/gimp/2.0/plug-ins/file-jpeg" 1387765882
    (proc-def "file-jpeg-load" 1
         "loads files in the JPEG file format"
         "loads files in the JPEG file format"
         "Spencer Kimball, Peter Mattis & others"
         "Spencer Kimball & Peter Mattis"
         "1995-2007"
         "JPEG image"
         0
        (icon stock-id -1 "")
        (load-proc
            (extension "jpg,jpeg,jpe")
            (magic "6,string,JFIF,6,string,Exif")
            (mime-type "image/jpeg")
            (thumb-loader "file-jpeg-load-thumb"))
         ""
         3 1
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 4 "filename" "The name of the file to load")
        (proc-arg 4 "raw-filename" "The name of the file to load")
        (proc-arg 13 "image" "Output image"))
    (proc-def "file-jpeg-load-thumb" 1
         "Loads a thumbnail from a JPEG image"
         "Loads a thumbnail from a JPEG image (only if it exists)"
         "Mukund Sivaraman <[email protected]>, Sven Neumann <[email protected]>"
         "Mukund Sivaraman <[email protected]>, Sven Neumann <[email protected]>"
         "November 15, 2004"
         ""
         0
        (icon stock-id -1 "")
         ""
         2 3
        (proc-arg 4 "filename" "The name of the file to load")
        (proc-arg 0 "thumb-size" "Preferred thumbnail size")
        (proc-arg 13 "image" "Thumbnail image")
        (proc-arg 0 "image-width" "Width of full-sized image")
        (proc-arg 0 "image-height" "Height of full-sized image"))
    (proc-def "file-jpeg-save" 1
         "saves files in the JPEG file format"
         "saves files in the lossy, widely supported JPEG format"
         "Spencer Kimball, Peter Mattis & others"
         "Spencer Kimball & Peter Mattis"
         "1995-2007"
         "JPEG image"
         0
        (icon stock-id -1 "")
        (save-proc
            (extension "jpg,jpeg,jpe")
            (mime-type "image/jpeg"))
         "RGB*, GRAY*"
         14 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "drawable" "Drawable to save")
        (proc-arg 4 "filename" "The name of the file to save the image in")
        (proc-arg 4 "raw-filename" "The name of the file to save the image in")
        (proc-arg 3 "quality" "Quality of saved image (0 <= quality <= 1)")
        (proc-arg 3 "smoothing" "Smoothing factor for saved image (0 <= smoothing <= 1)")
        (proc-arg 0 "optimize" "Optimization of entropy encoding parameters (0/1)")
        (proc-arg 0 "progressive" "Enable progressive jpeg image loading (0/1)")
        (proc-arg 4 "comment" "Image comment")
        (proc-arg 0 "subsmp" "The subsampling option number")
        (proc-arg 0 "baseline" "Force creation of a baseline JPEG (non-baseline JPEGs can't be read by all decoders) (0/1)")
        (proc-arg 0 "restart" "Interval of restart markers (in MCU rows, 0 = no restart markers)")
        (proc-arg 0 "dct" "DCT algorithm to use (speed/quality tradeoff)")))

I did a compare and the only difference was the path since I built mine in my home folder. I guess this is going to be hard to track down. I'm suppose something went wrong when I compiled it eons ago and will probably just need to live with it until I get around to compiling it again. Just seems like a strange error which made me think it might be able to trace.

Thanks for all the help. :)

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 3:55 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jun 01, 2014
Posts: 11
Interresting, now I also know where some of the configuration files for gimp is. Loadure of jpg/jpeg for gimp 2.6 (gegl 0.0.2, glib 2.23, gtk+ 2.24.10, pango 1.30.0, fontconfig 2.80) shows now problems. Adjusting the config file only removes file from recognized types for open dialog, but does not inhibit loading .jpeg .


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 4:21 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
No problem with Gimp 2.8.10, Ubuntu 14.04.

Check Debian for dependencies,
apt-cache depends gimp

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 4:24 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Well I saved a .jpg file as .tiff, .tif, and .jpe. The only one it won't open is the .tiff. I have a feeling this is down to the number of characters in the extension and it never gets to reading the magic of the file if it's over 3 characters.

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 5:54 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Odinbc wrote:
No problem with Gimp 2.8.10, Ubuntu 13.04.

Check Debian for dependencies,
apt-cache depends gimp


Well all the depends come back as "already the newest version"
Didn't try the help or plugin-registry files.

Depends: libgimp2.0
  Depends: libgimp2.0
  Depends: gimp-data
  Depends: gimp-data
  Depends: python-gtk2
  Depends: libaa1
  Depends: libbabl-0.1-0
  Depends: libbz2-1.0
  Depends: libc6
  Depends: libcairo2
  Depends: libdbus-1-3
  Depends: libdbus-glib-1-2
  Depends: libexif12
  Depends: libfontconfig1
  Depends: libfreetype6
  Depends: libgdk-pixbuf2.0-0
  Depends: libgegl-0.2-0
  Depends: libglib2.0-0
  Depends: libgs9
  Depends: libgtk2.0-0
  Depends: libgudev-1.0-0
  Depends: libjasper1
  Depends: libjpeg8
  Depends: liblcms1
  Depends: libmng1
  Depends: libpango1.0-0
  Depends: libpng12-0
  Depends: libpoppler-glib8
  Depends: librsvg2-2
  Depends: libtiff4
  Depends: libwebkitgtk-1.0-0
  Depends: libwmf0.2-7
  Depends: libx11-6
  Depends: libxcursor1
  Depends: libxext6
  Depends: libxfixes3
  Depends: libxmu6
  Depends: libxpm4
  Depends: zlib1g
  Depends: python
  Depends: python2.7
|Suggests: gimp-help-en
  Suggests: <gimp-help>
    gimp-help-ca
    gimp-help-da
    gimp-help-de
    gimp-help-el
    gimp-help-en
    gimp-help-en-gb
    gimp-help-es
    gimp-help-fr
    gimp-help-it
    gimp-help-ja
    gimp-help-ko
    gimp-help-nl
    gimp-help-nn
    gimp-help-pl
    gimp-help-pt-br
    gimp-help-ru
    gimp-help-sl
    gimp-help-sv
    gimp-help-zh-cn
  Suggests: gimp-data-extras
  Suggests: gvfs-backends
    gvfs-backends:i386
  Suggests: libasound2
    liboss4-salsa-asound2
  Recommends: ghostscript
    ghostscript:i386
  Breaks: gimp-plugin-registry
  Breaks: gimp-plugin-registry:i386
  Replaces: gimp-plugin-registry
  Replaces: gimp-plugin-registry:i386
  Conflicts: gimp:i386

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 6:27 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Doesn't look like a matter of installed plugins, since the same plugin is used for JPEG/JPG.

And looking at the source code, for unknown extensions Gimp tries to find if the magic number in the file matches any file plugin. I also don't see any limit to the length of extensions...

_________________
Image


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 6:33 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
Running ubuntu studio 14.04 with gimp 2.8.10 and have no problem.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: jpg vs jpeg
PostPosted: Sun Jun 01, 2014 7:37 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
ofnuts wrote:
Doesn't look like a matter of installed plugins, since the same plugin is used for JPEG/JPG.

And looking at the source code, for unknown extensions Gimp tries to find if the magic number in the file matches any file plugin. I also don't see any limit to the length of extensions...


I searched the source for the error message to try and trace backwards and it only appears for psd files.
psd-load.c and the associated po files. I guess it's a mystery. :P

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group