I am using command line to crop pics
Manual :
http://www.imagemagick.org/script/comma ... s.php#crop
Hi after a lot of try and after reading à lot of time user guide I am still unable to crop my big image ( let's say 1000x 2000) into one of 600x1000 with a resgistration point of x = 0 and y = 0
I don't anderstand how to set the % to set the registration point to 0 What's the formula ????
If someone could give and simple exemple I couldn't find anywhere else ?
Unable to make -crop work il command line
-
- Posts: 1
- Joined: 2013-03-14T14:20:49-07:00
- Authentication code: 6789
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Unable to make -crop work il command line
I don't know what you mean by "registration point". This ...
... will create an image 600x1000, starting at an offset of (0,0) in the input image, i.e. stating top-left.
Code: Select all
convert input.png -crop 600x1000+0+0 output.png
snibgo's IM pages: im.snibgo.com
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Unable to make -crop work il command line
Also '%' is only used to specify a percentage size (relative to the original images size). It has no effect on the offset point being used.
On the other hand -gravity effects the offset position (and alignment)
WARNING: IMv7 "magick" command will also permit percent escapes in almost every command line option argument!
As such '%' in crop (depending on where it is) could be a percent size, or a image property inclusion.
On the other hand -gravity effects the offset position (and alignment)
WARNING: IMv7 "magick" command will also permit percent escapes in almost every command line option argument!
As such '%' in crop (depending on where it is) could be a percent size, or a image property inclusion.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/