Page 1 of 1

Liquid Resize, IM Examples, and future development.

Posted: 2008-02-03T18:00:11-07:00
by anthony
I have places my own 'small' but initial testing of Liquid Rescaling into IM Examples. Should appear in a couple of hours.

Liquid Rescale - Seam Carving
http://imagemagick.org/Usage/resize/#liquid-rescale

This includes an animation, though the animation was done using repeated operations, rather than the use of a 'universal LQR filter image'.

The Next Step

The next step I think would be for a user preservation/removal mask though that should be either an different or expanded option.

For example, I would leave -liquid-rescale as a SIMPLE option for users to liquid resize multiple images, just as a normal -resize does.

But I would add a new 'expert LQR' option such as
-lqr 'mask'
whcih will let you take two images in the current image sequence, the second being some for of mask image to preferentially preserve/remove parts of the first image.

Actually you could make -liquid-rescale a simple user interface alias for say -lqr 'image_list' for completeness, just as -flatten is now a alias for -layers flatten.

Later -lqr options can interface with other expert controls of the LQR library. for example extract/use an energy function, seam removal order images, direct use of seam carving (horizontal, and vertical pixel seam removal), and so on.

This will allow a more control than the basic LQR operations, yet keep it simple for general users.

Re: Liquid Resize, IM Examples, and future development.

Posted: 2008-02-03T18:16:46-07:00
by magick
Perhaps the best path forward is to make -liquid-rescale an image sequence operator such that if there is one image it behaves as it does now but if there are two it uses the second as an energy mask.

Re: Liquid Resize, IM Examples, and future development.

Posted: 2008-02-03T18:37:14-07:00
by anthony
magick wrote:Perhaps the best path forward is to make -liquid-rescale an image sequence operator such that if there is one image it behaves as it does now but if there are two it uses the second as an energy mask.
I disagree, The simple user operator -liquid-rescale should work just like the other image resize operators (-resize, -scale, -sample, and -adaptive-resize) , on a list of images. So that is can be used in commands like "mogrify" on a list of images.

The Expert level option would be limited to a single image with filters and masks etc, because it is such a more complex operation.