Trim one border
Add a 1-pixel thick black row or column opposite the side you want to trim, then add a 1-pixel thick white row or column next to it. Run "convert" with the -trim option. This will trim the desired side and will also remove the white row/column, but won't remove anything from the sides. Then remove the black row/column.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
To trim one broder, your want to -chop it!
See IM Examples...
http://www.cit.gu.edu.au/~anthony/graph ... crop/#chop
The solution GlenRP provided is of corse valid, but a round-about way of doing the same thing.
See IM Examples...
http://www.cit.gu.edu.au/~anthony/graph ... crop/#chop
The solution GlenRP provided is of corse valid, but a round-about way of doing the same thing.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
I stand corrected. I'll see about adding an example for this.
Done
http://www.cit.gu.edu.au/~anthony/graph ... im_oneside
Done
http://www.cit.gu.edu.au/~anthony/graph ... im_oneside
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/