On 07/10/15 05:25, HarryH wrote:
Just trying a batch in a folder of png files, want to convert from indexed mode
to rgb. Followed GIMP help instructions for batch convert via terminal (I'm
using Xubuntu 14.04 if that makes any difference).
I tried this and got an error:
gimp -i -b '(gimp-image-convert-rgb "*.png")' -b '(gimp-quit 0)'
batch command experienced an execution error:
Error: ( : 1) Invalid type for argument 1 to gimp-image-convert-rgb
Can anyone explain to me what I did wrong?
The first parameter to that function is an image already loaded in Gimp,
not a filename (with a wildcard too boot). So your script would need to
iterate the wildcard pattern, and for each file, load the image, convert
it, and save the result.
But for this kind of work, you should really be using the ImageMagick
toolbox (available in the Ubuntu repositories), a set a command line
tools to edit/convert images. See
gimp-user-list mailing list
List address: firstname.lastname@example.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives: https://mail.gnome.org/archives/gimp-user-list