Hi David,
Thanks for answering my question so quickly.
I realized that I should have phrased my question more carefully. What
I want is to be able to autocrop all the images matching a pattern,
say movie*.jpg. How do I do that?
I tried something below, but that didn't work. =(
Thanks!
Zac
Zachary Leung wrote:
I tried something below, but that didn't work. =(
[snip]
gimp -i -b '(plug_in_autocrop movie0.jpg)'
(define (zac-autocrop filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(drawable (car (gimp-image-get-active-layer
Thanks guys, I've figured out what to do from your pointers! Didn't
realize there's a difference between _ and -.
Zac
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Quoting David Gowers [EMAIL PROTECTED]:
You defined zac-autocrop correctly, but you haven't registered it with GIMP.
See this link for an example.
If you are calling a Script-fu defined function from the command line,
it is not required that the function be registered with the PDB. The
Hi everyone,
I'm wondering if there's an automated way to crop my images of all the white
areas on the outside.
Basically I've produced quite a few MATLAB plots exported as JPEGs. There's
a lot of white around the sides, and the figure is in the center. Is there
an automated way to crop exactly