Hi,
I've read through the distort article (http://www.imagemagick.org/Usage/distorts/). Is it possible to use the -distort and +verbose flag to print out the formula used for the distortion operation, but not actually perform the operation itself? I have some very large images (30K x 30K) that I need to distort, but I need to adjust the position of the resulting image based on what the distortion parameters are.
-distort +verbose without processing
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -distort +verbose without processing
Just add -verbose to the command with a single pixel image and set the output to null:
convert xc: -verbose -distort ... null:
see
http://www.imagemagick.org/Usage/distor ... rt_verbose
convert xc: -verbose -distort ... null:
see
http://www.imagemagick.org/Usage/distor ... rt_verbose
Re: -distort +verbose without processing
That's a good idea. But this should still load the file, which may take a long time.
I had the idea that the transformation should be the same, no matter what input is used. So I guess one could just
do the transformation on 'rose', set the viewport to 1x1, and output to null.
I had the idea that the transformation should be the same, no matter what input is used. So I guess one could just
do the transformation on 'rose', set the viewport to 1x1, and output to null.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -distort +verbose without processing
As I said above just use a single pixel transparent image xc:
convert xc: -verbose -distort ... null:
or
convert -size 1x1 xc: -verbose -distort ... null:
both are the same. You can use any color xc:red if you want. It does not matter what pixel. Or you can crop your input image to 1 pixel.
xc: is the same as canvas:
convert xc: -verbose -distort ... null:
or
convert -size 1x1 xc: -verbose -distort ... null:
both are the same. You can use any color xc:red if you want. It does not matter what pixel. Or you can crop your input image to 1 pixel.
xc: is the same as canvas: