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?