How can I Liquid Rescale just a part of an image?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fengruzhuo
Posts: 2
Joined: 2014-09-14T06:23:58-07:00
Authentication code: 6789

How can I Liquid Rescale just a part of an image?

Post by fengruzhuo »

My request : I want to Liquid Rescale just a part of an image.
The param "-liquid-rescale" seems it only applies to the whole image.

Can anyone tell me any other solutions?
Thanks for any hint :)
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How can I Liquid Rescale just a part of an image?

Post by Bonzo »

There was talk of improving the Liquid rescale but I do not think it happened as the developers are very busy.

Maybe a bit of lateral thinking; crop the part of the image you want to rescale and then composite or append it back onto the original?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How can I Liquid Rescale just a part of an image?

Post by fmw42 »

Can anyone tell me any other solutions?
Thanks for any hint
Have you tried -region?

Alternately, crop the section you want, process with liquid-rescale and then composite the result back. Or create a mask for the region you want, use liquid rescale on the whole image, then use the mask to composite between the original and rescaled result.
fengruzhuo
Posts: 2
Joined: 2014-09-14T06:23:58-07:00
Authentication code: 6789

Re: How can I Liquid Rescale just a part of an image?

Post by fengruzhuo »

Bonzo wrote:There was talk of improving the Liquid rescale but I do not think it happened as the developers are very busy.

Maybe a bit of lateral thinking; crop the part of the image you want to rescale and then composite or append it back onto the original?

Yes, I've tried this, but the effect is not good.
Sometimes there will be a gap on the image after compositing.
Post Reply