-extent Width Only
Posted: 2008-12-30T11:52:11-07:00
I am generating a series of text images using IM... essentially I create a large layer (1280x1024), put some text at the center of it, add some shadows or other improvements, then I trim it. However, I want to expand the image back out to 1280px wide while maintaining it's trimmed height.
I read that extent can be used as below to set just the height:
But trying the option below doesn't appear to work at all.
I would like the above to extend the canvas to 1280px wide, maintaining the height. I would expect that it would use gravity to determine which side of the canvas to add to.
Am I doing something wrong, or does extent only allow vertical 1 dimension adjustments?
I read that extent can be used as below to set just the height:
Code: Select all
-extent x100
Code: Select all
-extent 1280
or
-extent 1280x
Am I doing something wrong, or does extent only allow vertical 1 dimension adjustments?