It is currently Thu Jul 25, 2024 11:18 pm


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: 4758
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 <muks@mukund.org>, Sven Neumann <sven@gimp.org>"
         "Mukund Sivaraman <muks@mukund.org>, Sven Neumann <sven@gimp.org>"
         "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: 7763
Location: On the other side of this 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.

_________________


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: 4758
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: 1826
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: 1826
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: 4758
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 ]


   Similar Topics   Replies 
No new posts Attachment(s) Edit with Gimp Command File

10

No new posts Cannot edit text in a layer from a PSD file

1

No new posts Attachment(s) How to edit GTKRC file in Gimp 2.10.34

2

No new posts Can't open files 'Unknown file type'

7

No new posts How to find a list of enums?

5



* Login  



Powered by phpBB3 © phpBB Group