[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gimp-user
Subject:    Re: [Gimp-user] -crop formula
From:       Bob Meetin <bobm () dottedi ! biz>
Date:       2009-06-15 5:24:51
Message-ID: 4A35DB23.1020007 () dottedi ! biz
[Download RAW message or body]

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

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic