Hi,
i have a raspberry pi, and im trying to crop an image thus.
i want a box 465pixels wide, 111high, with a top left pixel location of 175x780.
convert imageleft.jpg -crop 780x175+111+465 +repage chlorine.jpg
Does that command look right?
the image size is 2592x1944
cheers
steve
trouble cropping
-
- Posts: 2
- Joined: 2019-09-16T10:58:10-07:00
- Authentication code: 1152
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: trouble cropping
You have your coordinates wrong. Crop is WxH+X+Y. So if you want a width=465 and height=111 at 175,780 top left corner, then use
Code: Select all
convert imageleft.jpg -crop 465x111+175+780 +repage chlorine.jpg
-
- Posts: 2
- Joined: 2019-09-16T10:58:10-07:00
- Authentication code: 1152
Re: trouble cropping
Greta, thanks mate!