On Mon, Jan 07, 2008 at 07:30:22PM +, Martin Bradley wrote:
> I don't want to try to get your code working because I know nothing
> about Python, I know it is a good language. The other reason I'm not
> happy using it is that it adds another layer of software to a solution
> that should work o
Hi Joao,
> May I suugest this code instead of the above? :
>
> from gimpfu import *
> def python_fu_create_thumb(filename):
> img = pdb.gimp_file_load(filename, filename)
> pdb.gimp_file_save_thumbnail(img, filename)
>
> register (
> "python-fuc-create-thumb",
> "Create Thumbnail
On Friday 04 January 2008 19:35, Martin Bradley wrote:
> Hi Folks,
>
> >You have an error in your placement of ')'.
>
> That was because I thought set was used similar to (let ..)
>
> >I don't think you need the file save since you haven't changed the
> > file since it was loaded.
>
> I have correc
Martin Bradley wrote:
> I'd been slowly trying to learn Common Lisp and thought that Script-Fu had it.
> Here is the scheme coding tutorial I was using, most likely the wrong
> thing to be reading.
> http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html#node_toc_node_sec_4.1
Script-Fu
Hi Folks,
>You have an error in your placement of ')'.
That was because I thought set was used similar to (let ..)
>I don't think you need the file save since you haven't changed the file since
>it was loaded.
I have corrected the arguments. I saved the file first because
gimp-file-save-thumbn
Martin Bradley wrote:
> (define (script-fu-create-thumb filename)
> (let* ((img 0))
> ;; car needed here because gimp functions return values as lists
> (set! img (car (gimp-file-load 1 filename filename))
> (gimp-file-save img filename)
> (print (gimp-file-save-thumbnail img fi
Hi Folks,
I'm trying to use this script to create a thumbnail of a jpg or gif
image. However I am not getting any results, no new image stored.
Image Process Gimp script
To run this from the command prompt:
gimp -c