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?".
Question: I like the sharpening when using <distort>, but the resulting image is distorted a little.
Can I achieve the above formula in a different way, maintaining the sharpness 'without' any distortion ?
The addition of -set colorspace RGB is only to properly convert your result back to sRGB. If you convert to a colorspace other than sRGB, IM loses that information and you need to tell IM from what colorspace it is being converted when you go back to sRGB (or any other colorspace).
How you resize (-resize or -distort resize) depends whether you want a rectangular filter or a circular filter.
Sorry I do not understand what your problem is. Can you elaborate and/or provide example images?
My objective is to reduce over 3000 pixel wide, 240 dpi landscape photography (.tif) to 1024, 72 dpi Jpeg.
I've tried various filters and am satisfied with the Lagrange. Someone recommended to use the
'distort' filter to increase the quality... I noticed an increased 'sharpening' effect using the 'distort',
but the result was stretched slightly from the original.
So I'm questioning if there is any benefit in using the 'distort' feature (at all) for my purposes,
or if it can be used without the slight stretching that occurs on the result.
Formula #1 uses; -distort Resize
Formula #2 uses; -resize
I am not sure why you get a slight stretching. Anthony would have to comment on that. But it could be because of different algorithms being used. There is a 0.5 pixel issue that is commented here http://www.imagemagick.org/Usage/distor ... oordinates. I believe that distort resize uses image coordinates and resize uses pixel coordinates.
Since the stretching is an unknown and you have not replied on if distort adds any additional benefit
e.g. -distort Resize vs. -resize... I'll have to leave it off to get my work done this evening.
Note that both -distort Resize and -resize do not scale the X and Y equally, but almost equally. The differance is basically to keep the image 'interger' or 'pixel' aligned.
could this be the 'stretching' you are seeing. Note both do this in the same way (scaling). only distort does it as a single 2D filter pass, while resize does it as 2 seperate orthogonal passes with a internal intermedite image.
If this is not the 'stretching' you are talking about, then perhaps you need to explain it a little more.