-distort +verbose without processing

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?".
Post Reply
Ant6n
Posts: 2
Joined: 2013-03-14T10:26:50-07:00
Authentication code: 6789

-distort +verbose without processing

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -distort +verbose without processing

Post 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
Ant6n
Posts: 2
Joined: 2013-03-14T10:26:50-07:00
Authentication code: 6789

Re: -distort +verbose without processing

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -distort +verbose without processing

Post 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:
Post Reply