It is currently Mon Jun 15, 2026 8:00 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 8:10 am  (#1) 
Offline
New Member

Joined: Jan 21, 2018
Posts: 4
I have a curious problem. I installed GIMP 2.8.18 using a fresh profile on Linux.
The file-jpeg plugin is installed however GIMP doesn't list .jpg or .JPG files in a directory. I have to rename the file to .jp2 for GIMP to be able to list it and thereby read it. I was wondering if anyone had any suggestions why this is?

Seond question, what is the gtk toolkit component for getting an image preview in the open file dialog box?

I know these features exist from an earlier experience with GIMP. I changed my system and am having to rebuild from first principals.


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: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 8:30 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Edit the "pluginrc" file in your Gimp profile, the section for the plugin that loads jpegs it should look like this:

(plug-in-def "/usr/lib/gimp/2.0/plug-ins/file-jpeg" 1494589442
    (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"))


Note the "load-proc/extension" item. What extensions are listed in yours?

_________________
Image


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 8:40 am  (#3) 
Offline
New Member

Joined: Jan 21, 2018
Posts: 4
Oh wow, great thanks for the swift response. Yes that now works. I wonder why .jpg isn't set as extension option by default?


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 10:33 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8366
Location: On the other side of your screen
Just to answer your second question - The one in your reply. I think .jpeg use to be the default extension but was changed to .png for a web friendlier file because it supports transparency and .jpeg doesn't. Actually it will export to what you use the most - gimp files can be exported in many formats and the native extension is xcf.

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.0 and GMIC-Qt 3.7.5 OS :- Windows 10 Home 64


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 11:53 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
udvAQZJY wrote:
Oh wow, great thanks for the swift response. Yes that now works. I wonder why .jpg isn't set as extension option by default?


By default in my open file dialog the image type selector is "All images". Not in yours?

_________________
Image


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 5:16 pm  (#6) 
Offline
New Member

Joined: Jan 21, 2018
Posts: 4
All Images is selected by default.

I just stumbled on yet another problem. When you "export" an image there again is no .jpeg option.


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 5:29 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1837
Just enter .jpg as the extension. Example - "blablabla.jpg"


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 5:31 pm  (#8) 
Offline
New Member

Joined: Jan 21, 2018
Posts: 4
If I do that I get this:

The given filename does not have any known file extension. Please enter a known file extension or select a file format from the file format list.


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 5:38 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1837
Works perfectly here, no clue what your issue is. What are you running gimp on anyway?

FYI, I'm running gimp 2.8.16 on Linux x64.


Top
 Post subject: Re: GIMP won't list .jpg files but will edit renamed .jp2 file
PostPosted: Sun Jan 21, 2018 7:29 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
udvAQZJY wrote:
All Images is selected by default.

I just stumbled on yet another problem. When you "export" an image there again is no .jpeg option.


It looks like your Jpeg plugin is broken, or has been overridden with a a JPEG2000-capable plugin (my stock Gimp 2.8.22 doesn't know about the JP2 extension).

_________________
Image


Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group