Page 1 of 1

-distort +verbose without processing

Posted: 2013-03-14T10:34:54-07:00
by Ant6n
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.

Re: -distort +verbose without processing

Posted: 2013-03-14T12:11:21-07:00
by fmw42
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

Re: -distort +verbose without processing

Posted: 2013-03-14T14:11:09-07:00
by Ant6n
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.

Re: -distort +verbose without processing

Posted: 2013-03-14T14:13:06-07:00
by fmw42
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: