[Feature request] gravity as percentage

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
ascarius
Posts: 1
Joined: 2015-06-25T05:46:18-07:00
Authentication code: 6789

[Feature request] gravity as percentage

Post by ascarius »

Hi,

Existing gravity options could still be used (e.g. South = 50%:100%),
but more importantly, we could easily set gravity on an interest point (e.g. On the face of the main character).

By this away we ensure the interest point will still be visible in the image, even if we drastically crop an image.

What do you think ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: [Feature request] gravity as percentage

Post by snibgo »

I'm not sure how that would work. Could you describe it more precisely?

For video work, I often want to zoom in (or out) with a fixed point of the image remaining at a fixed point on the output. "-distort SRT" does this trick well. Unlike other resizing methods, it can resize to a non-integer size, which is needed for smooth video.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: [Feature request] gravity as percentage

Post by fmw42 »

What is an example of your command line? We need to know what function (method) is being used with -gravity (setting). Lots of IM functions use -gravity.

Also always provide your IM version and platform!
Post Reply