opposite -extent or -shave
Posted: 2007-01-02T12:37:06-07:00
A simple thing...
I can use -extent to add pixels to the right and bottom of an image, but
what if I prefer the left and top?
convert rose: -extent 80x56 ...
This adds 10 pixels on the right and bottom.
I can get what I want with
convert rose: -rotate 180 -extent 80x56 -rotate 180 ...
but this seems horribly inefficient, as do other tricks involving compose,
draw and such. I would have thought that some -crop geometry and page
settings might do it, but I cannot figure out how.
Using -gravity with -extent would be cool, if it worked in tandem, but it
doesn't.
Also nice would be to have an inverse -shave, something like
convert rose: -shave -10x-10 ...
Anyway, what's the most efficient way to do this? (Here comes Anthony with just the one-liner I need...)
Thanks in advance,
Rick
I can use -extent to add pixels to the right and bottom of an image, but
what if I prefer the left and top?
convert rose: -extent 80x56 ...
This adds 10 pixels on the right and bottom.
I can get what I want with
convert rose: -rotate 180 -extent 80x56 -rotate 180 ...
but this seems horribly inefficient, as do other tricks involving compose,
draw and such. I would have thought that some -crop geometry and page
settings might do it, but I cannot figure out how.
Using -gravity with -extent would be cool, if it worked in tandem, but it
doesn't.
Also nice would be to have an inverse -shave, something like
convert rose: -shave -10x-10 ...
Anyway, what's the most efficient way to do this? (Here comes Anthony with just the one-liner I need...)
Thanks in advance,
Rick