RSS/Atom feed Twitter
Site is read-only, email is disabled

-crop formula

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

-crop formula Bob Meetin 15 Jun 07:15
  -crop formula Bob Meetin 15 Jun 07:24
Bob Meetin
2009-06-15 07:15:26 UTC (over 15 years ago)

-crop formula

I have a batch of images all the same size, 1488x2240 pixels. I could use a pointer for a formula that would crop each image to a specific size and keep the same proportion, roughly 2:3, or perhaps crop to a 3:4 proportion. For instance crop the center 744x1120 pixels (50% of height or width).

I would like to be able to plug in a specific size either in % (50%, 33%, etc) or dimensions.

Thx, Bob

Bob Meetin
2009-06-15 07:24:51 UTC (over 15 years ago)

-crop formula

Bob Meetin wrote:

I have a batch of images all the same size, 1488x2240 pixels. I could use a pointer for a formula that would crop each image to a specific size and keep the same proportion, roughly 2:3, or perhaps crop to a 3:4 proportion. For instance crop the center 744x1120 pixels (50% of height or width).

I would like to be able to plug in a specific size either in % (50%, 33%, etc) or dimensions.

Thx, Bob

I think never mind - found the -crop example:

convert img1.jpg -crop 1120x744+560+372 img2.jpg

formula: d1 = 50 %width
d2 = 50 %height
d3 = 25 %width
d4 = 25 %height

convert img1.jpg -crop $d1 x $d2 + $d3 + $d4 img2.jpg