Emulating a resize algorithm
Posted: 2011-12-04T07:52:20-07:00
I worked out most of the details about how Photoshop resizes images (link). For no particular reason, I want to see if ImageMagick can be made to resize images in the same way. There are two things I still need:
1. A way to apply a box filter that also translates the image by a fraction of a pixel. I tried to do this with +distort, but couldn't make it work quite right.
2. A way to apply a blurry cubic filter in one dimension (which will be resized), but not in the other dimension (which will stay the same size).
Can these things be done?
1. A way to apply a box filter that also translates the image by a fraction of a pixel. I tried to do this with +distort, but couldn't make it work quite right.
2. A way to apply a blurry cubic filter in one dimension (which will be resized), but not in the other dimension (which will stay the same size).
Can these things be done?