Hello!
I need to rotate and scale an image. Also I need in custom interpolation type, for example, bicubic.
I've found ResizeImage method, witch takes interpolation type as a parameter. But I can't
find rotation with interpolation. The affine transform with interpolation is best for me but
I can't find it to.
Is there any way to solve my problem?
Thanks!
Image rotation and resize with interpolation
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Image rotation and resize with interpolation
In command line mode you would set the -filter for downsizing or -interpolate for upsizing and use -distort SRT
see
http://www.imagemagick.org/Usage/distorts/#srt
http://www.imagemagick.org/Usage/resize/#filter
Sorry I don't know the API methods
see
http://www.imagemagick.org/Usage/distorts/#srt
http://www.imagemagick.org/Usage/resize/#filter
Sorry I don't know the API methods
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Image rotation and resize with interpolation
It used to do this.
Now it uses a improved method that does not need that switch, as such -distort just uses the -filter setting.
However if you want interpolation, just turn off filter by setting -filter point, and set -interpolate as you like
These settings should be available in Wand, though I am not a wand user myself.
Now it uses a improved method that does not need that switch, as such -distort just uses the -filter setting.
However if you want interpolation, just turn off filter by setting -filter point, and set -interpolate as you like
These settings should be available in Wand, though I am not a wand user myself.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/