Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Elle Stone

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
___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Elle Stone

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





___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Elle Stone

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
___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Kevin Payne
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



___
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
___
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
___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread wwp
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


pgpmcxeLLe_uD.pgp
Description: OpenPGP digital signature
___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Kevin Payne
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



___
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
___
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


Re: [Gimp-developer] GIMP 2.9 XCF files and digiKam, gnome file browsers, etc

2016-03-15 Thread Elle Stone

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



___
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