Gravity option on /image/resize

Archived from the Transloadit support forum. Originally posted on January 23, 2012; details may be outdated, see our docs for current behavior. Original thread

Are there plans to support any more options available within imagemagick? The one I am really interested in is “gravity”.

Thanks!
Blake

Hey Blake,

we’d rather support complete features, than just a special parameter. For example we indirectly use gravity in order to support cropping. A new separate feature using gravity could be text captions.

What did you have in mind exactly with gravity?

Kind regards
Tim

Thanks for the quick response.

I’m trying to generate images via the ruby SDK. I would like to be able to use the gravity option, like in Imagemagick, to specify the thumb should set the origin to the ‘North’ or ‘South’. I believe that currently, specifying crop resize, uses gravity center. Ideally, if using the crop resize strategy, I would receive images with gravity center unless explicitly passing “gravity: North”.

Thanks,
Blake

Interesting and good idea.

Added to my todo for next week! Watch out for a blogpost.

Hey Blake,

a “gravity” parameter is now available. :slight_smile: