RSS/Atom feed Twitter
Site is read-only, email is disabled

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

23 of 24 messages available
Toggle history

Please log in to manage your subscriptions.

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 02 Jan 16:01
  GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Boudewijn Rempt 03 Jan 08:04
   GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 03 Jan 17:29
    GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 03 Jan 22:53
     GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Michael Natterer 03 Jan 23:41
      GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 04 Jan 19:13
       1451944393879.494367163@boxbe 05 Jan 18:45
        GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Joseph Bupe 05 Jan 07:41
         GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Alexandre Prokoudine 05 Jan 23:26
         GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Alexandre Prokoudine 05 Jan 23:27
          GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Akkana Peck 07 Jan 01:15
       GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Michael Natterer 04 Jan 21:39
        GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 15 Mar 13:42
         GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Kevin Payne 15 Mar 13:49
          GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Kevin Payne 15 Mar 13:52
           GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 15 Mar 14:32
            GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Kevin Payne 15 Mar 14:51
             GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 15 Mar 17:18
              GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Michael Natterer 16 Mar 19:38
     GIMP 2.9 XCF files and digiKam, gnome file browsers, etc wwp 15 Mar 13:56
      GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Elle Stone 15 Mar 14:42
       GIMP 2.9 XCF files and digiKam, gnome file browsers, etc wwp 15 Mar 15:00
    GIMP 2.9 XCF files and digiKam, gnome file browsers, etc Boudewijn Rempt 04 Jan 10:50
     batch script for converting from xcf to jpg (was Re: GIMP 2.9 XCF files and digiKam, gnome file browsers, etc) Elle Stone 04 Jan 19:44
Elle Stone
2016-01-02 16:01:36 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Is the GIMP 2.9 XCF file format? API? (not sure what the right phrase is) stable enough that it makes sense to hope that other applications like digiKam and various other file browsers and image viewers could start showing thumbnails?

For example, digiKam can create thumbnails for 2.8 XCF files but not for 2.9 XCF files.

I'd like to ask the digiKam devs to provide support for showing a thumbnail for GIMP 2.9 XCF files. But if the XCF files are likely to change substantially before 2.10 is released, maybe now is not a good time.

Best, Elle

Boudewijn Rempt
2016-01-03 08:04:25 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Sat, 2 Jan 2016, Elle Stone wrote:

Is the GIMP 2.9 XCF file format? API? (not sure what the right phrase is) stable enough that it makes sense to hope that other applications like digiKam and various other file browsers and image viewers could start showing thumbnails?

For example, digiKam can create thumbnails for 2.8 XCF files but not for 2.9 XCF files.

I'd like to ask the digiKam devs to provide support for showing a thumbnail for GIMP 2.9 XCF files. But if the XCF files are likely to change substantially before 2.10 is released, maybe now is not a good time.

Digikam actually has't got to implement anything itself for that to work. The thumbnails are generated by KIO plugin, the full image view by QImageIO plugins. Check git://anongit.kde.org/kimageformats for the imageio plugins (I should move the Krita imageio plugins there...) and https://quickgit.kde.org/?p=kio-extras.git&a=tree&h=d2127aa55d72bfde4c269c75a91a721159548ff6&hb=3d8409f93830cb9bf658bd0648b7b1db3dd5c684&f=thumbnail for the thumbnailers.

Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
Elle Stone
2016-01-03 17:29:39 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 01/03/2016 03:04 AM, Boudewijn Rempt wrote:

On Sat, 2 Jan 2016, Elle Stone wrote:

I'd like to ask the digiKam devs to provide support for showing a thumbnail for GIMP 2.9 XCF files. But if the XCF files are likely to change substantially before 2.10 is released, maybe now is not a good time.

Digikam actually has't got to implement anything itself for that to work. The thumbnails are generated by KIO plugin, the full image view by QImageIO plugins. Check git://anongit.kde.org/kimageformats for the imageio plugins (I should move the Krita imageio plugins there...) and https://quickgit.kde.org/?p=kio-extras.git&a=tree&h=d2127aa55d72bfde4c269c75a91a721159548ff6&hb=3d8409f93830cb9bf658bd0648b7b1db3dd5c684&f=thumbnail for the thumbnailers.

Boudewijn, thanks! for the information. On KDE bugzilla, would a request for supporting GIMP 2.9 XCF files go under "product: kdelibs, component: kimgio"?

Is there any kind of concensus as to whether the GIMP 2.9 XCF file format stable enough that it would it be worth filing a bug report/enhancement request for support for GIMP 2.9 XCF files?

Elle

Elle Stone
2016-01-03 22:53:42 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Does anyone know of *any* image viewer that can display a thumbnail for GIMP 2.9 XCF files?

Elle

Michael Natterer
2016-01-03 23:41:25 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail for 
GIMP 2.9 XCF files?

I don't know, but they should at least show the thumbnails created by GIMP. I hope that works across apps, it does work in nautilus.

--Mitch

Boudewijn Rempt
2016-01-04 10:50:42 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

yn Sun, 3 Jan 2016, Elle Stone wrote:

On 01/03/2016 03:04 AM, Boudewijn Rempt wrote:

On Sat, 2 Jan 2016, Elle Stone wrote:

I'd like to ask the digiKam devs to provide support for showing a thumbnail for GIMP 2.9 XCF files. But if the XCF files are likely to change substantially before 2.10 is released, maybe now is not a good time.

Digikam actually has't got to implement anything itself for that to work. The thumbnails are generated by KIO plugin, the full image view by QImageIO plugins. Check git://anongit.kde.org/kimageformats for the imageio plugins (I should move the Krita imageio plugins there...) and https://quickgit.kde.org/?p=kio-extras.git&a=tree&h=d2127aa55d72bfde4c269c75a91a721159548ff6&hb=3d8409f93830cb9bf658bd0648b7b1db3dd5c684&f=thumbnail for the thumbnailers.

Boudewijn, thanks! for the information. On KDE bugzilla, would a request for supporting GIMP 2.9 XCF files go under "product: kdelibs, component: kimgio"?

I think it's rather frameworks-kimageformats

Is there any kind of concensus as to whether the GIMP 2.9 XCF file format stable enough that it would it be worth filing a bug report/enhancement request for support for GIMP 2.9 XCF files?

I don't know :-) I would personally wait until the stable release.

Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
Elle Stone
2016-01-04 19:13:39 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 01/03/2016 06:41 PM, Michael Natterer wrote:

On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail for
GIMP 2.9 XCF files?

I don't know, but they should at least show the thumbnails created by GIMP. I hope that works across apps, it does work in nautilus.

--Mitch

By "thumbnails" do you mean thumbnails created by Nautilus? or thumbnails created by GIMP and put in a hidden folder in the user's home folder (assuming the user has chosen in Preferences/System Resources to actually save Image Thumbnails)?

elle

Elle Stone
2016-01-04 19:44:59 UTC (about 8 years ago)

batch script for converting from xcf to jpg (was Re: GIMP 2.9 XCF files and digiKam, gnome file browsers, etc)

On 01/04/2016 05:50 AM, Boudewijn Rempt wrote:

On 01/03/2016 03:04 AM, Boudewijn Rempt wrote:

On Sat, 2 Jan 2016, Elle Stone wrote:

Digikam actually has't got to implement anything itself for that to work. The thumbnails are generated by KIO plugin, the full image view by QImageIO plugins. Check git://anongit.kde.org/kimageformats for the imageio plugins (I should move the Krita imageio plugins there...) and https://quickgit.kde.org/?p=kio-extras.git&a=tree&h=d2127aa55d72bfde4c269c75a91a721159548ff6&hb=3d8409f93830cb9bf658bd0648b7b1db3dd5c684&f=thumbnail for the thumbnailers.

Boudewijn, thanks! for the information. On KDE bugzilla, would a request for supporting GIMP 2.9 XCF files go under "product: kdelibs, component: kimgio"?

I think it's rather frameworks-kimageformats

Is there any kind of concensus as to whether the GIMP 2.9 XCF file format stable enough that it would it be worth filing a bug report/enhancement request for support for GIMP 2.9 XCF files?

I don't know :-) I would personally wait until the stable release.

AFAIK the release date for GIMP 2.10 hasn't been set, and I'm pretty sure my own coding skills aren't up to the task of writing c++/qt5 code that allows KDE applications to open 2.9 XCF files.

As showing actual thumbnails for GIMP 2.9 files isn't yet possible, the next best thing is a companion "XCF sidecar" jpg file for digiKam (or other image viewer) to catalog. I found a batch script here:

http://stackoverflow.com/questions/5794640/how-to-convert-xcf-to-png-using-gimp-from-the-command-line

Here's code to run from a GIMP 2.9 prefix to convert XCF files to jpegs with the extension ".xcf.jpg":

$PREFIX/bin/gimp-2.9 -n -i -b -
(gimp-quit 0)
)
EOF

Having to do this one folder at a time would be not much fun. How should the code be modified to recursively travel through folders?

Best, Elle

Michael Natterer
2016-01-04 21:39:36 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Mon, 2016-01-04 at 14:13 -0500, Elle Stone wrote:

On 01/03/2016 06:41 PM, Michael Natterer wrote:

On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail
for
GIMP 2.9 XCF files?

I don't know, but they should at least show the thumbnails created by GIMP. I hope that works across apps, it does work in nautilus.

--Mitch

By "thumbnails" do you mean thumbnails created by Nautilus? or  thumbnails created by GIMP and put in a hidden folder in the user's home 
folder (assuming the user has chosen in Preferences/System Resources to 
actually save Image Thumbnails)?

I meant thumbnails created by GIMP, which uses the same standard folders as nautilus, so nautilus should show them.

--Mitch

Joseph Bupe
2016-01-05 07:41:44 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Alexandre Prokoudine
2016-01-05 23:26:23 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Tue, Jan 5, 2016 at 10:41 AM, Joseph Bupe wrote:

How about this:
https://blogs.gnome.org/alexl/2015/11/05/native-file-choosers-in-gtk/ _______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list

Alexandre Prokoudine
2016-01-05 23:27:25 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Tue, Jan 5, 2016 at 10:41 AM, Joseph Bupe wrote:

How about this:
https://blogs.gnome.org/alexl/2015/11/05/native-file-choosers-in-gtk/

Not going to be used until work on the GTK+3 port resumes 9after 2.10 release).

Also, not relevant to this discussion, perhaps? :)

Alex

Akkana Peck
2016-01-07 01:15:15 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Related question: is there any chance the gdk_pixbuf_* functions will ever support XCF, e.g. in gdk_pixbuf_new_from_file()? Then at least some image viewers would get support for free.

...Akkana

Elle Stone
2016-03-15 13:42:18 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 01/04/2016 04:39 PM, Michael Natterer wrote:

On Mon, 2016-01-04 at 14:13 -0500, Elle Stone wrote:

On 01/03/2016 06:41 PM, Michael Natterer wrote:

On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail
for
GIMP 2.9 XCF files?

I don't know, but they should at least show the thumbnails created by GIMP. I hope that works across apps, it does work in nautilus.

--Mitch

By "thumbnails" do you mean thumbnails created by Nautilus? or thumbnails created by GIMP and put in a hidden folder in the user's home
folder (assuming the user has chosen in Preferences/System Resources to
actually save Image Thumbnails)?

I meant thumbnails created by GIMP, which uses the same standard folders as nautilus, so nautilus should show them.

I just asked GIMP to create some new thumbnails of GIMP XCF files. But I haven't been able to locate them using the Dolphin file browser.

Where are the GIMP thumbnails stored? And what's the file extension? As far as I can tell, GIMP 2.9/2.10 seems to "forget" about whatever thumbnails it creates just as soon as GIMP is closed. Is there a setting in Preferences that needs to be (re)set? Is it the Document History" option?

I don't know what folders Nautilus uses and I'm not willing to install Nautilus to find out. But if GIMP creates thumbnails (pngs?) and puts them in a specific folder, I can ask digiKam to monitor that folder. Or rather maybe I can copy the thumbnails over to the folders where I keep the XCF files.

Best,
Elle

Kevin Payne
2016-03-15 13:49:01 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Thumbnail creation is controlled by the "Image Thumbnails" option on Preferences>>Environment

Presumably on a Linux system they are saved in ~/.thumbnails (On my Windows system it's C:\Users\username\.thumbnails )

Kevin

From: gimp-developer-list  on behalf of Elle Stone 
Sent: 15 March 2016 13:42
To: Michael Natterer; Gimp-developer
Subject: Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 01/04/2016 04:39 PM, Michael Natterer wrote:
> On Mon, 2016-01-04 at 14:13 -0500, Elle Stone wrote:
>> On 01/03/2016 06:41 PM, Michael Natterer wrote:
>>> On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:
>>>> Does anyone know of *any* image viewer that can display a
>>>> thumbnail
>>>> for
>>>> GIMP 2.9 XCF files?
>>>
>>> I don't know, but they should at least show the thumbnails
>>> created by GIMP. I hope that works across apps, it does work
>>> in nautilus.
>>>
>>> --Mitch
>>
>> By "thumbnails" do you mean thumbnails created by Nautilus? or
>> thumbnails created by GIMP and put in a hidden folder in the user's
>> home
>> folder (assuming the user has chosen in Preferences/System Resources
>> to
>> actually save Image Thumbnails)?
>
> I meant thumbnails created by GIMP, which uses the same standard
> folders as nautilus, so nautilus should show them.
>

I just asked GIMP to create some new thumbnails of GIMP XCF files. But I
haven't been able to locate them using the Dolphin file browser.

Where are the GIMP thumbnails stored? And what's the file extension? As
far as I can tell, GIMP 2.9/2.10 seems to "forget" about whatever
thumbnails it creates just as soon as GIMP is closed. Is there a setting
in Preferences that needs to be (re)set? Is it the Document History" option?

I don't know what folders Nautilus uses and I'm not willing to install
Nautilus to find out. But if GIMP creates thumbnails (pngs?) and puts
them in a specific folder, I can ask digiKam to monitor that folder. Or
rather maybe I can copy the thumbnails over to the folders where I keep
the XCF files.

Best,
Elle
Kevin Payne
2016-03-15 13:52:34 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

And just for the sake of pointless change, in 2.9.3.??? It's Preferences>>System Resources

Kevin

From: gimp-developer-list  on behalf of Kevin Payne 
Sent: 15 March 2016 13:49
To: Elle Stone; Gimp-developer
Subject: Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Thumbnail creation is controlled by the "Image Thumbnails" option on Preferences>>Environment

Presumably on a Linux system they are saved in ~/.thumbnails (On my Windows system it's C:\Users\username\.thumbnails )

Kevin


________________________________________
From: gimp-developer-list  on behalf of Elle Stone 
Sent: 15 March 2016 13:42
To: Michael Natterer; Gimp-developer
Subject: Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 01/04/2016 04:39 PM, Michael Natterer wrote:
> On Mon, 2016-01-04 at 14:13 -0500, Elle Stone wrote:
>> On 01/03/2016 06:41 PM, Michael Natterer wrote:
>>> On Sun, 2016-01-03 at 17:53 -0500, Elle Stone wrote:
>>>> Does anyone know of *any* image viewer that can display a
>>>> thumbnail
>>>> for
>>>> GIMP 2.9 XCF files?
>>>
>>> I don't know, but they should at least show the thumbnails
>>> created by GIMP. I hope that works across apps, it does work
>>> in nautilus.
>>>
>>> --Mitch
>>
>> By "thumbnails" do you mean thumbnails created by Nautilus? or
>> thumbnails created by GIMP and put in a hidden folder in the user's
>> home
>> folder (assuming the user has chosen in Preferences/System Resources
>> to
>> actually save Image Thumbnails)?
>
> I meant thumbnails created by GIMP, which uses the same standard
> folders as nautilus, so nautilus should show them.
>

I just asked GIMP to create some new thumbnails of GIMP XCF files. But I
haven't been able to locate them using the Dolphin file browser.

Where are the GIMP thumbnails stored? And what's the file extension? As
far as I can tell, GIMP 2.9/2.10 seems to "forget" about whatever
thumbnails it creates just as soon as GIMP is closed. Is there a setting
in Preferences that needs to be (re)set? Is it the Document History" option?

I don't know what folders Nautilus uses and I'm not willing to install
Nautilus to find out. But if GIMP creates thumbnails (pngs?) and puts
them in a specific folder, I can ask digiKam to monitor that folder. Or
rather maybe I can copy the thumbnails over to the folders where I keep
the XCF files.

Best,
Elle
wwp
2016-03-15 13:56:11 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Hello Elle,

On Sun, 3 Jan 2016 17:53:42 -0500 Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail for GIMP 2.9 XCF files?

XnViewMP does.

Regards,

wwp
Elle Stone
2016-03-15 14:32:00 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 03/15/2016 09:52 AM, Kevin Payne wrote:

And just for the sake of pointless change, in 2.9.3.??? It's Preferences>>System Resources

Thumbnail creation is controlled by the "Image Thumbnails" option on Preferences>>Environment

Presumably on a Linux system they are saved in ~/.thumbnails (On my Windows system it's C:\Users\username\.thumbnails )

Kevin

Kevin, thanks! That provided a clue as to where the thumbnails might be. I think they are being saved to "tmp" and so erased upon restarting the computer.

Earlier today I saw the folder ".thumbnails" in my home folder. It contained two subfolders, one called "large" and I forget what the other one was called. Using Geeqie to take a look, there were a bunch of pngs inside, I'm guessing from files that I worked with a long time ago. I put this folder in the trash as the contents were useless.

I started GIMP 2.9 and opened a file. The dolphin file browser shows a newly created folder called ".thumbnails" in my home folder, with one subfolder called "large". GIMP created thumbnails for the XCF files that I clicked on, but nothing was saved to the folder "/home/elle/.thumbnails/large". As far as I could tell no other new folder was created anywhere in my home folder.

Here are my System Resources settings:

Image Thumbnails: Size of thumbnails: Large, Maximum filesize for thumbnailing: 512MB.

Document History "Keep record of used files in the Recent Documents list" is checked.

The "Document History" setting doesn't actually sound relevant. Is it?

On a hunch, I checked the "tmp" folder. It seems that this is where the GIMP thumbnails are being saved to "disk". But the tmp folder on my computer is actually only in RAM, and all the files disappear when the computer is restarted.

So is there some setting in Preferences that I accidentally might have set, that tells GIMP 2.9 to save the thumbnails to "tmp" instead of to ".thumbnails"?

Best,
Elle

Elle Stone
2016-03-15 14:42:23 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 03/15/2016 09:56 AM, wwp wrote:

Hello Elle,

On Sun, 3 Jan 2016 17:53:42 -0500 Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail for GIMP 2.9 XCF files?

XnViewMP does.

Are you saying that the closed-source freeware XnViewMP can actually *create* and display a thumbnail for a GIMP 2.9 XCF file? Or maybe it's using the thumbnails generated by GIMP (and apparently not saved to the right location on my computer)?

If XnViewMP creates thumbnails from XCF files, can it create a thumbnail even if the XCF file is saved as a 32-bit floating point file or with other features not compatible with GIMP 2.8?

Best, Elle

Kevin Payne
2016-03-15 14:51:28 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

A very quick bit of rummaging round in source code leads me to libgimpthumb\gimpthumb-utils.c

Where it shows a fall-back if the thumbnails directory cannot be created - it uses the tmp dir instead.

Kevin

From: Elle Stone 
Sent: 15 March 2016 14:32
To: Kevin Payne; Gimp-developer
Subject: Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 03/15/2016 09:52 AM, Kevin Payne wrote:
> And just for the sake of pointless change, in 2.9.3.??? It's Preferences>>System Resources
>
> Thumbnail creation is controlled by the "Image Thumbnails" option on Preferences>>Environment
>
> Presumably on a Linux system they are saved in ~/.thumbnails (On my Windows system it's C:\Users\username\.thumbnails )
>
> Kevin
>

Kevin, thanks! That provided a clue as to where the thumbnails might be.
I think they are being saved to "tmp" and so erased upon restarting the
computer.

Earlier today I saw the folder ".thumbnails" in my home folder. It
contained two subfolders, one called "large" and I forget what the other
one was called. Using Geeqie to take a look, there were a bunch of pngs
inside, I'm guessing from files that I worked with a long time ago. I
put this folder in the trash as the contents were useless.

I started GIMP 2.9 and opened a file. The dolphin file browser shows a
newly created folder called ".thumbnails" in my home folder, with one
subfolder called "large". GIMP created thumbnails for the XCF files that
I clicked on, but nothing was saved to the folder
"/home/elle/.thumbnails/large". As far as I could tell no other new
folder was created anywhere in my home folder.

Here are my System Resources settings:

Image Thumbnails: Size of thumbnails: Large, Maximum filesize for
thumbnailing: 512MB.

Document History "Keep record of used files in the Recent Documents
list" is checked.

The "Document History" setting doesn't actually sound relevant. Is it?

On a hunch, I checked the "tmp" folder. It seems that this is where the
GIMP thumbnails are being saved to "disk". But the tmp folder on my
computer is actually only in RAM, and all the files disappear when the
computer is restarted.

So is there some setting in Preferences that I accidentally might have
set, that tells GIMP 2.9 to save the thumbnails to "tmp" instead of to
".thumbnails"?

Best,
Elle
wwp
2016-03-15 15:00:12 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

Hello Elle,

On Tue, 15 Mar 2016 10:42:23 -0400 Elle Stone wrote:

On 03/15/2016 09:56 AM, wwp wrote:

Hello Elle,

On Sun, 3 Jan 2016 17:53:42 -0500 Elle Stone wrote:

Does anyone know of *any* image viewer that can display a thumbnail for GIMP 2.9 XCF files?

XnViewMP does.

Are you saying that the closed-source freeware XnViewMP can actually *create* and display a thumbnail for a GIMP 2.9 XCF file? Or maybe it's using the thumbnails generated by GIMP (and apparently not saved to the right location on my computer)?

If XnViewMP creates thumbnails from XCF files, can it create a thumbnail even if the XCF file is saved as a 32-bit floating point file or with other features not compatible with GIMP 2.8?

Sorry, I'm afraid that's too much questions for me, I don't know what it does and how, and just saying that in XnViewMP, the XCF files are shown like other image file formats, i.e. showing thumbnails in files list.

Regards,

wwp
Elle Stone
2016-03-15 17:18:18 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On 03/15/2016 10:51 AM, Kevin Payne wrote:

A very quick bit of rummaging round in source code leads me to libgimpthumb\gimpthumb-utils.c

Where it shows a fall-back if the thumbnails directory cannot be created - it uses the tmp dir instead.

Kevin

Hmm,
https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#DIRECTORY says the "normal" place for the thumbnail directory is $XDG_CACHE_HOME/thumbnails/ and the "normal" location for $XDG_CACHE_HOME is /$HOME/.cache.

For whatever reason on my computer $XDG_CACHE_HOME is set to /tmp/elle/.cache. So that's probably why GIMP is writing thumbnails to the tmp folder.

If I start GIMP by adding the line:

export XDG_CACHE_HOME=/home/elle/.cache

then GIMP saves thumbnails to /home/elle/.cache/thumbnails.

The thumbnail contains information that points to the corresponding XCF file, for example:

Description : Thumbnail of file:///home/elle/edit/digiKam/working/080810-2252-1855-house-rainbow.xcf Software : GIMP 2.9.3
Thumb URI :
file:///home/elle/edit/digiKam/working/080810-2252-1855-house-rainbow.xcf

digiKam doesn't offer the option of adding a hidden folder to the database.

Copying the thumbnail folder to a folder that digiKam monitors and trying to open the correspoinding XCF file by opening the the thumbnail just opens the thumbnail itself, not the XCF file.

Are there any image/file browsers that can use the uri location information in the thumbnail to open the corresponding XCF file rather than the actual thumbnail png?

I mean besides Nautilus. I don't want to install Nautilus on my computer as it would mean making considerable changes to my Gentoo installation.

As an aside, https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html says $XDG_CACHE_HOME is for "user-specific non-essential (cached) data".

It seems to me that the thumbnails that make it possible to browse one's XCF files don't count as "non-essential". As it is, for the thumbnails to be useful I'd have to use GIMP to recreate thumbnails for the 500 or so XCF files currently indexed by digiKam, and that would take an enormouse amount of time to accomplish.

Thumbnail browsing is at best a temporary and fragile workaround for using an image DAM software like digiKam, that can make its own thumbnails (except for GIMP 2.9 XCF files), or at least can read a thumbnail already embedded in the image file.

Are GIMP 2.9 XCF files saved to disk with embedded thumbnails?

Best, Elle

Michael Natterer
2016-03-16 19:38:36 UTC (about 8 years ago)

GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

On Tue, 2016-03-15 at 13:18 -0400, Elle Stone wrote:

On 03/15/2016 10:51 AM, Kevin Payne wrote:

A very quick bit of rummaging round in source code leads me to libgimpthumb\gimpthumb-utils.c

Where it shows a fall-back if the thumbnails directory cannot be created - it uses the tmp dir instead.

Kevin

Hmm, 
https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec- latest.html#DIRECTORY 
says the "normal" place for the thumbnail directory is  $XDG_CACHE_HOME/thumbnails/ and the "normal" location for  $XDG_CACHE_HOME is /$HOME/.cache.

For whatever reason on my computer $XDG_CACHE_HOME is set to  /tmp/elle/.cache. So that's probably why GIMP is writing thumbnails to 
the tmp folder.

You should fix that. Whatever is setting your XDG_CACHE_GOME to /tmp/something is doing so wrongly, or at least not sanely :)

If I start GIMP by adding the line:

export XDG_CACHE_HOME=/home/elle/.cache

then GIMP saves thumbnails to /home/elle/.cache/thumbnails.

The thumbnail contains information that points to the corresponding XCF 
file, for example:

Description : Thumbnail of  file:///home/elle/edit/digiKam/working/080810-2252-1855-house- rainbow.xcf
Software : GIMP 2.9.3
Thumb URI : 
file:///home/elle/edit/digiKam/working/080810-2252-1855-house- rainbow.xcf

digiKam doesn't offer the option of adding a hidden folder to the database.

Copying the thumbnail folder to a folder that digiKam monitors and  trying to open the correspoinding XCF file by opening the the thumbnail 
just opens the thumbnail itself, not the XCF file.

Are there any image/file browsers that can use the uri location  information in the thumbnail to open the corresponding XCF file rather 
than the actual thumbnail png?

I mean besides Nautilus. I don't want to install Nautilus on my computer 
as it would mean making considerable changes to my Gentoo installation.

We use the folders specified in the freedektop thumbnail managing spec, that's not going to change. You should file bugs against desktop components that don't follow the standard.

As an aside, 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-late st.html 
says $XDG_CACHE_HOME is for "user-specific non-essential (cached) data".

It seems to me that the thumbnails that make it possible to browse one's 
XCF files don't count as "non-essential". As it is, for the thumbnails 
to be useful I'd have to use GIMP to recreate thumbnails for the 500 or 
so XCF files currently indexed by digiKam, and that would take an  enormouse amount of time to accomplish.

Thumbnails are by definition non-essential because they can be recreated, and that's why they live in ~/.cache, you only need to make sure your cache is at the persistent default location.

Thumbnail browsing is at best a temporary and fragile workaround for  using an image DAM software like digiKam, that can make its own  thumbnails (except for GIMP 2.9 XCF files), or at least can read a  thumbnail already embedded in the image file.

Are GIMP 2.9 XCF files saved to disk with embedded thumbnails?

That's on the TODO, but there are so many things on the TODO...

Regards, --Mitch