[Gimp-developer] thumbnail generation for nautilus via gimp

Owen rcook at pcug.org.au
Tue Dec 4 15:14:27 PST 2007


On Tue, 04 Dec 2007 21:24:56 +0100
"Eckhard M." Jäger <bart at neeneenee.de> wrote:

> Hello,
> 
> i started writing the internal Gimp script for looping over the images.
> My code is so far the simple:
> 
> # -*- coding: utf-8 -*-
> 
> from gimpfu import *
> import os
> import os.path
> 
> def python_thumbnailer(this_image, this_path):
> 	a = this_path
> 
> register(
> 	"python-fu-thumbnailer",
> 	"Generating thumbnails",
> 	"Generating thumbnails for Nautilus via Gimp",
> 	"Eckhard M. Jaeger",
> 	"Eckhard M. Jaeger",
> 	"2007",
> 	"<Toolbox>/Xtns/Nautilus Thumbnailer...",
> 	"",
> 	[
> 		(PF_STRING, "this_path", "Directory Path", ""),
> 	],
> 	[],
> 	python_thumbnailer)
> 
> main()
> 
> this script is copied into ~/.gimp-2.4/plug-ins but didn't appear
> anywhere :(
> I can't find the bug, please can somebody help me. Thanx.



I don't know, but did you get any error messages when you started the Gimp from the command line?

If it uses python, do you need to call python #!/usr/bin/python?

Does it have the right permissions?

When I add those corrections, I get the menu item





Owen


More information about the Gimp-developer mailing list