Gravity option on /image/resize

Started by Blake_Chambers4 replies15 views
Blake_ChambersOriginal post
#1

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

tim-kos
#2

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

Blake_Chambers
#3

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

tim-kos
#4

Interesting and good idea.

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

tim-kos
#5

Hey Blake,

a “gravity” parameter is now available. 🙂