Question about command defaults

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
ridera

Question about command defaults

Post by ridera »

Documentation states several commands have a default.
How do I designate it?

e.g., -unsharp

I've tried
-unsharp without any parameter
-unsharp ""
etc.

Nothing seems to work.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The image attributes have defaults, like the default bordercolor. For image operators you need to specify a parameter. Most of the kernel operators will choose a good radius and sigma for the kernel if the parameter is 0x1 (e.g. -unsharp 0x1).
ridera

Post by ridera »

Is there a list of the defaults for the various commands.

For example I can't find "0x1" in the documentaion. And, I wouldn't have guessed it.

Seems like the documention should include the default values.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

0x1 is not a option, it is an argument to the -unsharp option.

Basically it says to use the unsharp algorthim on a radius of one pixel.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply