GNOME Bugzilla – Bug 347307
Support for .xcf images
Last modified: 2013-10-03 04:26:57 UTC
I'd like that EOG could visualize also .xcf files, the ones you can make with The Gimp. It is strange that Nautilus can preview xcf files while the default Image Viewer can't. Thank You p.s. Sorry my poor English
This should be added in gdk-pixbuf level in order to make EOG support it. Moving to GTK+ and rewriting the summary accordingly.
xcf is not an image format, but an implementation detail of the gimp. I'd rather not support it in gdk-pixbuf. That being said, gdk-pixbuf is extensible, so if you can convince the gimp people, they can just install a loader for the xcf format.
Created attachment 128705 [details] Loader for Gimp XCF images Actually I agree with Matthias Clasen that this doesn't belong in GTK+. Extra image loaders can be added as plugins and including them with GTK+ is just bloat. But since I've written such a loader (which uses ImageMagic) I thought I could as well post it here.
other loader for .xcf, not depending on imagemagick: http://gitorious.org/xcf-pixbuf-loader I can format it as a patch if you agree to include it. See also: bug#608155
It feels silly to load gimp images with ImageMagick instead of with GIMP. What's basically required here from GIMP is: 1. take gimp-console (which is a second, gui-less binary) 2. hack up its linker flags so it can be also loaded as module 3. add a little glue code that initializes the gimp code stuff, loads the xcf and puts it into a pixbuf. 4. install a symlink into the pixbuf loader dir done.
*** Bug 608155 has been marked as a duplicate of this bug. ***
Not going to accept new 'exotic' image formats here. Please solve this on the gimp side.
Interesting to read some old mail at this time: https://mail.gnome.org/archives/gnome-announce-list/2000-October/msg00021.html "It is strange that Nautilus can preview xcf files while the default Image Viewer can't." Can someone explain why it is the case? If xcf is so 'exotic', how Nautilus recognize it?