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.
Liquid Resize, IM Examples, and future development.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Liquid Resize, IM Examples, and future development.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Liquid Resize, IM Examples, and future development.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Liquid Resize, IM Examples, and future development.
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.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.
The Expert level option would be limited to a single image with filters and masks etc, because it is such a more complex operation.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/