[Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Martin Bradley
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

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Martin Bradley
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

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-07 Thread Martin Bradley
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