On Thu, Feb 5, 2009 at 6:58 AM, Frank Barknecht <f...@footils.org> wrote:
> Hi,
> I have to do some tedious work, namely crop many images to four aspect
> ratios: 4:3, 3:4, 1:1 and 4:1. For each image I need to select
> the picture detail to preserve manually, so this cannot be automated.
> But I'd like to automate as much as possible from the rest of this
> task.
> I tried to write a Script-Fu for this, but while the Rectangle
> Selection tool offers a nice input element for a fixed aspect ratio in
> its Tool Options, this setting is not available in the
> "gimp-rect-select" procedure, which only offers x, y, width and
> height.
That's because it's redundant in that context, since a little basic
math can produce width/height values from an aspect ratio.

> I already saved some Tool Presets for setting the options to 4:3, 3:4,
> ... aspect ratios, but it seems, Tool Options can only be restored by
> using the Mouse, which I'd like to avoid as much as possible. Is there
> a way to add a keyboard shortcut to a certain Tool Preset, which I
> overlooked?
AFAIK no -- I've been wanting this for a while, and I haven't found a
reasonable way to implement it myself.

> Any other hints how to make my job less tedious?

You may be able to use tools like xdotool to automatically transfer
the aspect ratio into the rectangle-select tool options after the user
chooses which.

Gimp-user mailing list

Reply via email to