ImageMagick - Defines
Author: ImageMagick Studio LLC
Description: Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more.
Keywords: defines, image converter, image resizer, image editor, photo editor, jpg converter, png converter, tiff converter, vector images, online, free, swiss army

The -define command-line option adds specific global settings generally used to control coders and image processing operations.

This option creates one or more definitions for coders and decoders to use while reading and writing image data. Definitions are generally used to control image file format coder modules, and image processing operations, beyond what is provided by normal means. Defined settings are listed in -verbose information ("`info:`" output format) as "Artifacts".

If value is missing for a definition, an empty-valued definition of a flag is created with that name. This used to control on/off options. Use -define keys to remove definitions previously created. Use +define "*" to remove all existing definitions.

The same 'artifact' settings can also be defined using the -set "option:key" "value" option, which also allows the use of Format and Print Image Properties in the defined value.

The option and key are case-independent (they are converted to lowercase for use within the decoders) while the value is case-dependent.

Such settings are global in scope, and affect all images and operations.

    magick bilevel.tif -define ps:imagemask eps3:stencil.ps

Set attributes of the image registry by prefixing the value with `registry:`. For example, to set a temporary path to put work files, use:

    -define registry:temporary-path=/data/tmp

Here is a list of recognized defines:

Command-line Defines
auto-threshold:verbose | return derived threshold as the `auto-threshold:threshold` image property.
colorspace:auto-grayscale=on|off | Prevent automatic conversion to grayscale inside coders that support grayscale. This should be accompanied by -type truecolor. PNG and TIF do not need this define. With PNG, just use PNG24:image. With TIF, just use -type truecolor. JPG and PSD will need this define.
compare:ssim-radius=value | Set the structural similarity index radius.
compare:ssim-sigma=value | Set the structural similarity index sigma.
compare:ssim-k1=value | Set the structural similarity index k1 argument.
compare:ssim-k2=value | Set the structural similarity index k2 argument.
complex:snr=value | Set the divide SNR constant -complex.
compose:args=arguments | Set certain compose argument values when using convert ... -compose ... -composite. See Image Composition.
compose:clip-to-self=true|false | Some -compose methods can modify the 'destination' image outside the overlay area. It is disabled by default.
compose:clamp=on|off | Set each pixel whose value is below zero to zero and any the pixel whose value is above the quantum range to the quantum range (e.g. 65535) otherwise the pixel value remains unchanged. Define supported in ImageMagick 6.9.1-3 and above.
connected-components:angle-threshold=value | Merges any region with equivalent ellipse angle smaller than value into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.
connected-components:area-threshold=value | Merges any region with area smaller than value into its surrounding region or largest neighbor.
connected-components:background-id=object-id | Identify which object is to be the background object. Supported in Imagemagick 7.0.9.21.
connected-components:circularity-threshold=value | Merge any region with circularity smaller than value into its surrounding region or largest neighbor. Circularity is computed as 4*pi*area/perimeter^2. Supported in Imagemagick 7.0.9.24.
connected-components:diameter-threshold=value | Merge any region with diameter smaller than value into its surrounding region or largest neighbor. Diameter is computed as sqrt(4*area/pi). Supported in Imagemagick 7.0.9.24.
connected-components:eccentricity-threshold=value | Merge any region with equivalent ellipse eccentricity smaller than value into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.
connected-components:exclude-header=true | List the objects without the header. Supported in Imagemagick 7.0.9.21.
connected-components:keep=list-of-ids | Comma and/or hyphenated list of id values to keep in the output. Supported in Imagemagick 6.9.3-0.
connected-components:keep-colors=red;green;blue | Keeps objects identified by their color in a semicolon separated list. Supported in Imagemagick 6.9.3-0.
connected-components:keep-top=number-of-objects | Keeps only the top number of objects by area. Supported in Imagemagick 7.0.9.21.
connected-components:major-axis-threshold=value | Merge any region with equivalent ellipse major axis diameter smaller than value into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.
connected-components:mean-color=true | Change the output image from id values to mean color values. Supported in Imagemagick 6.9.2-8.
connected-components:minor-axis-threshold=value | Merge any region with equivalent ellipse minor axis diameter smaller than value into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.
connected-components:perimeter-threshold=value | Merge any region with perimeter smaller than value into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.
connected-components:remove=list-of-ids | Comma and/or hyphenated list of id values to remove from the output. Supported in Imagemagick 6.9.2-9.
connected-components:remove-colors=red;green;blue | Remove objects identified by their color in a semicolon separated list. Supported in Imagemagick 6.9.3-0.
connected-components:verbose=true | Lists id, bounding box, centroid, area, mean color for each region.
convolve:scale={kernel_scale}[!^] [,{origin_addition}] [%] | Define the kernel scaling. The special flag ! automatically scales to full dynamic range. The ! flag can be used in combination with a factor or percent. The factor or percent is then applied after the automatic scaling. An example is 50%!. This produces a result 50% darker than full dynamic range scaling. The ^ flag assures the kernel is 'zero-summing', for example when some values are positive and some are negative as in edge detection kernels. The origin addition adds that value to the center pixel of the kernel. This produces an effect that is like adding the image that many times to the result of the filtered image. The typical value is 1 so that the original image is added to the result of the convolution. The default is 0.
deskew:auto-crop=true | auto crop the image after deskewing.
delegate:bimodal=true | Specify direct conversion from Postscript to PDF.
distort:scale=value | Set the output scaling factor for use with -distort.
distort:viewport=WxH+X+Y | Set the viewport for use with -distort.
dither:diffusion-amount=X% | Set the amount of diffusion to use with Floyd-Steinberg diffusion
filter:option=value | Set a filter option for use with -resize. See below for specific options.
filter:b=value | Redefine the spline factor used for cubic filters such as Cubic, Catrom, Mitchel, and Hermite, as well as the Parzen cubic windowing function. If only one of the b or c values are defined, the other is set so as to generate a 'Cubic-Keys' filter. The meaning of the b and c values was defined in a research paper by Mitchell-Netravali.
filter:blur=factor | Scale the X axis of the filter (and its window). Use > 1.0 for blurry or < 1.0 for sharp. This should only be used with Gaussian and Gaussian-like filters simple filters, or you may not get the expected results.
filter:c=value | Redefine the Keys alpha factor used for cubic filters such as Cubic, Catrom, Mitchel, and Hermite, as well as the Parzen cubic windowing function. If only one of the b or c values are defined, the other is set so as to generate a 'Cubic-Keys' filter. The meaning of the b and c values was defined in a research paper by Mitchell-Netravali.
filter:kaiser-alpha=value | Set the Kaiser window alpha value. When it is multiplied by 'PI', it is equivalent to "kaiser-beta" and will override that setting. It only affects the Kaiser windowing function and does not affect any other attributes.
filter:kaiser-beta=value | Set the Kaiser window beta value. It only affects Kaiser windowing function and does not affect any other attributes. Before ImageMagick v6.7.6-10, this option was known as "filter:alpha" (an inheritance from the very old "zoom" program). It was changed to bring the function in line with more modern academic research usage and better assign it be more definitive. The default value is 6.5
filter:lobes=count | Set the number of lobes to use for the Sinc/Bessel filter. This is an alternate way of specifying the 'support' range of the filter, that is designed to be more suited to windowed filters, especially when used for image distorts.
filter:sigma=value | Set the 'sigma' value used to define the Gaussian filter. The default sigma value is '0.5'. It only affects the Gaussian filter, but does not shrink (but may enlarge) the filter's 'support'. It can be used to generate very small blurs, but without the filter 'missing' pixels due to using a small support setting. A larger value of '0.707' (a value of '1/sqrt(2)') is another common setting.
filter:support=radius | Set the filter support radius. It defines how large the filter should be and thus directly defines how slow the filtered resampling process is. All filters have a default 'preferred' support size. Some filters like Lagrange and windowed filters adjust themselves depending on this value. With simple filters this value either does nothing (but slow the resampling), or will clip the filter function in a detrimental way.
filter:verbose=true | Enable printing of information about the final internal filter selection to standard output. This includes a commented header on the filter settings being used and data allowing the filter weights to be easily graphed. Note however that some filters are internally defined in terms of other filters. The Lanczos filter, for example, is defined in terms of a SincFast windowed SincFast filter, while the Mitchell filter is defined as a general Cubic family filter with specific 'B' and 'C' settings.
filter:window=filter_function | The IIR (infinite impulse response) filters Sinc and Jinc are windowed (brought down to zero over the defined support range) with the given filter. This allows you to specify a filter function to be used as a windowing function for these IIR filters. Many of the defined filters are actually windowing functions for these IIR filters. A typical choices is Box, (which effectively turns off the windowing function).
filter:window-support=radius | Scale the windowing function to this size. This causes the windowing (or self-windowing Lagrange filter) to act is if the support window is larger than what is actually supplied to the calling operator. The filter, however, is still clipped to the true support size that is provided. If unset, this will equal the normal filter support size.
fourier:normalize=inverse | Set the location for the FFT/IFT normalization as use by +-fft and +-ift. The default is forward.
frames:step | When selecting image frames, the default is to step one frame at a time through a list, e.g. [0-3], returns frames 0, 1, 2, and 3. Set the step to 2 in this example and we instead get frames 0 and 2.
h:format=value | Set the image encoding format use when writing a C-style header. format can be any output format supported by ImageMagick except for h and magick. If this option is omitted, the default is GIF for PseudoClass images and PNM for DirectClass images.
hough-lines:accumulator=true | Return the accumulator image in addition to the lines image.
json:features | Include features in verbose information.
json:limit |
json:locate |
json:moments | Include image moments in verbose information.
kmeans:seed-colors=color-list | Initialize the colors, where color-list is a semicolon delimited list of seed colors (e.g. red;sRGB(19,167,254);#00ffff)
magick:format=value | Set the image encoding format use when writing a C-style header. This is the same as "h:format=format" described above.
magnify:method=value | Choose the method of pixel art magnification. The choices are: eagle2X, eagle3X, eagle3XB, epb2X, fish2X, hq2X, scale2X (default), scale3X, xbr2X
modulate:colorspace=colorspace | Define the colorspace to use with -modulate. Any hue-based colorspace may be use. The default is HSL.
morphology:compose=compose-method | Specify how to merge results generated by multiple-morphology kernel. The default is none. One typical value is 'lighten' as used, for example, with the sobel edge kernels.
morphology:showKernel=1 | Output (to 'standard error') all the information about a generated -morphology kernel.
phash:colorspaces=colorspace,colorspace,... | The perceptual hash defaults to the sRGB and HCLp colorspaces. When using this define, you can specify up to six alternative colorspaces. (as of IM 7.0.3-8)
phash:normalize=true | Normalize the phash metric by dividing by the number of channels specified by `-define phash:colorspaces` when using compare -metric phash. (as of IM 7.0.3-8)
profile:skip=name1,name2,... | Skip the named profile[s] when reading the image. Use skip="*" to skip all named profiles in the image. Many named profiles exist, including ICC, EXIF, APP1, IPTC, XMP, and others.
precision:highres-transform=true | Increase the profile transform precision. Note, there is a slight performance penalty as the high-precision transform is floating point rather than unsigned. It is important to note that results may depend on whether or not the original image already has an included profile.
preserve-timestamp=true|false | Preserve file timestamp (`mogrify` only).
q-table=quantization-table.xml | Custom JPEG quantization tables.
quantum:format=type | Set the type to `floating-point` to specify a floating-point format for raw files (e.g. GRAY:) or for MIFF and TIFF images in HDRI mode to preserve negative values. If -depth 16 is included, the result is a single precision floating point format. If -depth 32 is included, the result is double precision floating point format. For signed pixel data, use `-define quantum:format=signed`
quantum:maximum=value | Maximum value for certain image types such as DCM. If not set, the the maximum value is QuantumRange.
quantum:minimum=value | Minimum value for certain image types such as DCM. If not set, the the minimum value is zero.
quantum:polarity=photometric-interpretation | Set the photometric-interpretation of an image (typically for TIFF image file format) to either `min-is-black` (default) or `min-is-white`.
registry:attribute=value | Set attributes of the image registry, for example, registry:temporary-path=/data/tmp.
resample:verbose=true | Output the cylindrical filter lookup table created by the EWA (Elliptical Weighted Average) resampling algorithm. Note this table uses a squared radius lookup value. This is typically only used for debugging EWA resampling.
sample:offset=geometry | Location of the sampling point within the sub-region being sampled, expressed as percentages (see -sample).
shepards:power=value | Set the exponent in the Shepard's distortion. The default is 2.
stream:buffer-size=value | Set the stream buffer size. Select 0 for unbuffered I/O.
trim:percent-background=X% | Set the amount of background that is tolerated in an edge. It is specified as a percent. 0% means no background is tolerated. 50% means an edge can contain up to 50% pixels that are background per the fuzz-factor.
type:features=string | Add a font feature to be used by the RAQM delegate during complex text layout. This is usually used to turn on optional font features that are not enabled by default, but can be also used to turn off default font features. Features include those to control kerning, ligature and Arabic.
type:hinting=false | Disable font hinting. Proper glyph rendering needs the scaled points to be aligned along the target device pixel grid, through an operation often called hinting. One of its main purposes is to ensure that important widths and heights are respected throughout the whole font. (For example, it is very often desirable that the ‘I’ and the ‘T’ glyphs have their central vertical line of the same pixel width. Hinting also manages features like stems and overshoots, which can cause problems at small pixel sizes.
x:screen=true | Obtain the image from the root window.
x:silent=true | Turn off the beep when importing an image.
IMAGE FORMATS
bmp3:alpha=true|false | Include any alpha channel when writing in the BMP image format.
bmp:format=value | Valid values are bmp2, bmp3, and bmp4. This option can be useful when the method of prepending "BMP2:" to the output filename is inconvenient or is not available, such as when using the mogrify utility.
bmp:subtype=value | BMP channel depth subtypes. The choices are: RGB555, RGB565, ARGB4444, ARGB1555. Only support in BMP (BMP4). BMP3 and BMP2 do not contain header fields to support these options.
dcm:display-range=reset | Set the display range to the minimum and maximum pixel values for the DCM image format.
dcm:rescale=true | Enable interpretation of the rescale slope and intercept settings in the file.
dcm:rescale=true | Enable interpretation of the rescale slope and intercept settings in the file.
dcm:window=CxW | Specify the dcm window center and width.
dds:cluster-fit=true|false | Enable the DDS cluster-fit.
dds:compression=dxt1|dxt5|none | Set the dds compression.
dds:mipmaps=value | Set the dds number of mipmaps.
dds:weight-by-alpha=true|false | Enable the DDS alpha weighting.
dng:output-color=value | Select the output colorspace. The choices are: 0 - Raw color (unique to each camera), 1 - sRGB D65 (default), 2 - Adobe RGB (1998) D65, 3 - Wide Gamut RGB D65, 4 - Kodak ProPhoto RGB D65, 5 - XYZ, 6 - ACES
dng:use-auto-bright=false | Disable the histogram-based white level.
dng:use-auto-wb=true | Compute the white balance by averaging the entire image.
dng:use-camera-wb=true | Uses the white balance specified by the camera.
dot:layout-engine=value | Specify the layout engine for the DOT image format (e.g. `neato`).
eps:use-cropbox=true | Force Imagemagick to respect the crop box.
exr:color-type=value | Specify the color type for the EXR format: RGB, RGBA, YC, YCA, Y, YA, R, G, B, A).
fpx:view=value | Specify the FlashPix viewing object, which contains the specification of a viewing transform. The viewing transform enables applications to represent a set of simple edits as a list of "commands" which are applied to the image in real time without altering the original image.
heic:preserve-orientation=true | Preserve the original EXIF orientation during HEIC decoding and rotate the pixels accordingly. By default, EXIF orientation is reset to "1" to match the actual orientation of pixels in HEIC.
icon:auto-resize | Automatically stores multiple sizes when writing an ico image (requires a 256x256 input image).
jp2:layer-number=value | Set the maximum number of quality layers to decode. Same for JPT, JC2, and J2K.
jp2:number-resolutions=value | Set the number of resolutions to encode.Same for JPT, JC2, and J2K.
jp2:progression-order=value | Choose from LRCP, RLCP, RPCL, PCRL or CPRL. Same for JPT, JC2, and J2K.
jp2:quality=value,value... | Set the quality layer PSNR, given in dB. The order is from left to right in ascending order. The default is a single lossless quality layer. Same for JPT, JC2, and J2K.
jp2:rate=value | Specify the compression factor to use while writing JPEG-2000 files. The compression factor is the reciprocal of the compression ratio. The valid range is 0.0 to 1.0, with 1.0 indicating lossless compression. If defined, this value overrides the -quality setting. A quality setting of 75 results in a rate value of 0.06641. Same for JPT, JC2, and J2K.
jp2:reduce-factor=value | Set the number of highest resolution levels to be discarded.Same for JPT, JC2, and J2K.
jpeg:block-smoothing=on|off |
jpeg:colors=value | Set the desired number of colors and let the JPEG encoder do the quantizing.
jpeg:dct-method=value | Choose from `default`, `fastest`, `float`, `ifast`, and `islow`.
jpeg:extent=value | Restrict the maximum JPEG file size, for example `-define jpeg:extent=400KB`. The JPEG encoder will search for the highest compression quality level that results in an output file that does not exceed the value. The `-quality` option also will be respected starting with version 6.9.2-5. Between 6.9.1-0 and 6.9.2-4, add -quality 100 in order for the jpeg:extent to work properly. Prior to 6.9.1-0, the -quality setting was ignored.
jpeg:fancy-upsampling=on|off |
jpeg:optimize-coding=on|off |
jpeg:q-table=table |
jpeg:sampling-factor=sampling-factor-string |
jpeg:size=geometry | Set the size hint of a JPEG image, for example, `-define jpeg:size=128x128`. It is most useful for increasing performance and reducing the memory requirements when reducing the size of a large JPEG image.
mng:need-cacheoff | turn playback caching off for streaming MNG.
pcl:fit-to-page=true
pdf:fit-page=geometry | Geometry specifies the scaling dimensions for resizing when the PDF is being read. The geometry is either WxH{%} or page size. No offsets are allowed. (introduced in IM 6.8.8-8)
pdf:fit-to-page=true |
pdf:page-direction=right-to-left |
pdf:stop-on-error=true |
pdf:thumbnail=false | Skip writing a thumbnail when saving a PDF file.
pdf:use-cropbox=true |
pdf:use-trimbox=true |
png:bit-depth=value |
png:color-type=value | Desired bit-depth and color-type for PNG output. You can force the PNG encoder to use a different bit-depth and color-type than it would have normally selected, but only if this does not cause any loss of image quality. Any attempt to reduce image quality is treated as an error and no PNG file is written. E.g., if you have a 1-bit black-and-white image, you can use these "defines" to cause it to be written as an 8-bit grayscale, indexed, or even a 64-bit RGBA. But if you have a 16-million color image, you cannot force it to be written as a grayscale or indexed PNG. If you wish to do this, you must use the appropriate -depth, -colors, or -type directives to reduce the image quality prior to using the PNG encoder. Note that in indexed PNG files, "bit-depth" refers to the number of bits per index, which can be 1, 2, 4, or 8. In such files, the color samples always have 8-bit depth.
png:compression-filter=value | Valid values are 0 through 9. 0-4 are the corresponding PNG filters, 5 means adaptive filtering except for images with a colormap, 6 means adaptive filtering for all images, 7 means MNG "loco" compression, 8 means Z_RLE strategy with adaptive filtering, and 9 means Z_RLE strategy with no filtering.
png:compression-level=value | Valid values are 0 through 9, with 0 providing the least, but fastest compression and 9 usually providing the best and always the slowest.
png:compression-strategy=value | Valid values are 0 through 4, meaning default, filtered, huffman_only, rle, and fixed ZLIB compression strategy. If you are using an old zlib that does not support Z_RLE (before 1.2.0) or Z_FIXED (before 1.2.2.2), values 3 and 4, respectively, will use the zlib default strategy instead.
png:format=value | valid values are png8, png24, png32, png48, png64, and png00. This property is useful for specifying the specific PNG format to be used, when the usual method of prepending the format name to the output filename is inconvenient, such as when writing a PNG-encoded ICO file or when using mogrify. Value = png8 reduces the number of colors to 256, only one of which may be fully transparent, if necessary. The other values do not force any reduction of quality; it is an error to request a format that cannot represent the image data without loss (except that it is allowed to reduce the bit-depth from 16 to 8 for all formats). Value = png24 and png48 allow transparency, only if a single color is fully transparent and that color does not also appear in an opaque pixel; such transparency is written in a PNG `tRNS` chunk. Value = png00 causes the image to inherit its color-type and bit-depth from the input image, if the input was also a PNG.
png:exclude-chunk=value
png:include-chunk=value | ancillary chunks to be excluded from or included in PNG output. The value can be the name of a PNG chunk-type such as bKGD, a comma-separated list of chunk-names (which can include the word date, the word all, or the word none). Although PNG chunk-names are case-dependent, you can use all lowercase names if you prefer. The "include-chunk" and "exclude-chunk" lists only affect the behavior of the PNG encoder and have no effect on the PNG decoder. As a special case, if the `sRGB` chunk is excluded and the `gAMA` chunk is included, the `gAMA` chunk will only be written if gamma is not 1/2.2, since most decoders assume sRGB and gamma=1/2.2 when no colorspace information is included in the PNG file. Because the list is processed from left to right, you can achieve this with a single define:
    -define png:include-chunk=none,gAMA
As a special case, if the `sRGB` chunk is not excluded and the PNG encoder recognizes that the image contains the sRGB ICC profile, the PNG encoder will write the `sRGB` chunk instead of the entire ICC profile. To force the PNG encoder to write the sRGB profile as an `iCCP` chunk in the output PNG instead of the `sRGB` chunk, exclude the `sRGB` chunk. The critical PNG chunks `IHDR`, `PLTE`, `IDAT`, and `IEND` cannot be excluded. Any such entries appearing in the list will be ignored. If the ancillary PNG `tRNS` chunk is excluded and the image has transparency, the PNG colortype is forced to be 4 or 6 (GRAY_ALPHA or RGBA). If the image is not transparent, then the `tRNS` chunk isn't written anyhow, and there is no effect on the PNG colortype of the output image. The -strip option does the equivalent of the following for PNG output:
    -define png:exclude-chunk=EXIF,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date
The default behavior is to include all known PNG ancillary chunks plus ImageMagick's private `vpAg` ("virtual page") chunk, and to exclude all PNG chunks that are unknown to ImageMagick, regardless of their PNG "copy-safe" status as described in the PNG specification. Any chunk names that are not known to ImageMagick are ignored if they appear in either the "include-chunk" or "exclude-chunk" list. The ancillary chunks currently known to ImageMagick are `bKGD`, `cHRM`, `gAMA`, `iCCP`, `oFFs`, `pHYs`, `sRGB`, `tEXt`, `tRNS`, `vpAg`, and `zTXt`. You can also put `date` in the list to include or exclude the "Date:create" and "Date:modify" text chunks that ImageMagick normally inserts in the output PNG.
png:ignore-crc[=true] | When you know your image has no CRC or ADLER32 errors, this can speed up decoding. It is also helpful in debugging bug reports from "fuzzers".
png:preserve-colormap[=true] | Use the existing image->colormap. Normally the PNG encoder will try to optimize the palette, eliminating unused entries and putting the transparent colors first. If this flag is set, that behavior is suppressed.
png:preserve-iCCP[=true] | By default, the PNG decoder and encoder examine any ICC profile that is present, either from an `iCCP` chunk in the PNG input or supplied via an option, and if the profile is recognized to be the sRGB profile, converts it to the `sRGB` chunk. You can use `-define png:preserve-iCCP` to prevent this from happening; in such cases the `iCCP` chunk will be read or written and no `sRGB` chunk will be written. There are some ICC profiles that claim to be sRGB but have various errors that cause them to be rejected by libpng16; such profiles are recognized anyhow and converted to the `sRGB` chunk, but are rejected if the `-define png:preserve-iCCP` is present. Note that not all "sRGB" ICC profiles are recognized yet; we will add them to the list as we encounter them.
png:swap-bytes[=true] | The PNG specification requires that any multi-byte integers be stored in network byte order (MSB-LSB endian). This option allows you to fix any invalid PNG files that have 16-bit samples stored incorrectly in little-endian order (LSB-MSB). The "-define png:swap-bytes" option must appear before the input filename on the commandline. The swapping is done during the libpng decoding operation.
ps:imagemask | If the ps:imagemask flag is defined, the PS3 and EPS3 coders will create Postscript files that render bilevel images with the Postscript imagemask operator instead of the image operator.
psd:additional-info=all|selective | This option should only be used when converting from a PSD file to another PSD file. This should be placed after the image is read. The two options are 'all' and 'selective'. The 'selective' option will preserve all additional information that is not related to the geometry of the image. The 'all' option should only be used when the geometry of the image has not been changed. This option is helpful when transferring non-simple layers, such as adjustment layers from the input PSD file to the output PSD file. If this option is not used, the additional information will not be preserved. This define is available as of Imagemagick version 6.9.5-8.
psd:alpha-unblend=off | Disable new automatic un-blending of transparency with the base image for the flattened layer 0 before adding the alpha channel to the output image. This define must be placed before the input psd image. (Available as of IM 6.9.2.5). The automatic un-blending is new to IM 6.9.2.5 and prevents the transparency from being applied twice in the output image. This option should be set before reading the image.
psd:preserve-opacity-mask=true | This option should only be used when converting from a PSD file to another PSD file. It will preserve the opacity mask of a layer and add it back to the layer when the image is saved. Setting this to 'true' will enable this feature. This define is available as of Imagemagick version 6.9.5-10.
svg:xml-parse-huge=true | Enable rendering of a very large SVG for which you trust the source
tiff:alpha=associated|unassociated|unspecified | Specify the alpha extra samples as associated, unassociated or unspecified.
tiff:endian=msb|lsb |
tiff:exif-properties=true | Enable reading the EXIF properties.
tiff:fill-order=msb|lsb |
tiff:ignore-layers=true | Ignore the Photoshop layers.
tiff:ignore-tags=comma-separate-list-of-tag-IDs | Allow one or more tag ID values to be ignored.
tiff:predictor=[1, 2 or 3] | A mathematical operator that is applied to the image data before an encoding scheme is applied. The general idea is that subsequent pixels of an image resemble each other. Thus, substracting the information from a pixel that is already contained in previous one is likely to reduce its information density considerably and aid subsequent compression. 1 = No prediction scheme used before coding. 2 = Horizontal differencing. 3 = Floating point horizontal differencing.
tiff:rows-per-strip=value | Set the number of rows per strip.
tiff:tile-geometry=WxH | Set the tile size for pyramid tiffs. Requires the suffix PTIF: before the outputname.
PSEUDO-IMAGE FORMATS
caption:max-pointsize=pointsize | Limit the maximum point size
gradient:angle=angle (in degrees) | For a linear gradient, this specifies the direction of the gradient going from color1 to color2 in a clockwise positive manner relative to north (up). For a radial gradient, this specifies the rotation of the gradient in a clockwise positive manner from its normal X-Y orientation. Supported in Imagemagick 6.9.2-5.
gradient:bounding-box=WxH+X+Y | Limit the gradient to a larger or smaller region than the image dimensions. If the region defined by the bounding box is smaller than the image, then color1 will be the color of the background. Supported in Imagemagick 6.9.2-5.
gradient:center=x,y | Specify the coordinates of the center point for the radial gradient. The default is the center of the image. Supported in Imagemagick 6.9.2-5.
gradient:direction=value | Specify the direction of the linear gradient towards the top/bottom/left/right or diagonal corners. The choices are: NorthWest, North, Northeast, West, East, SouthWest, South, SouthEast. Supported in Imagemagick 6.9.2-5.
gradient:extent=value | Specify the shape of an image centered radial gradient. The choices are: Circle, Diagonal, Ellipse, Maximum, Minimum. Circle and Maximum draw a circular radial gradient even for rectangular shaped images of radius equal to the larger of the half-width and half-height of the image. The Circle and Maximum options are both equivalent to the default radial gradient. The Minimum option draws a circular radial gradient even for rectangular shaped images of radius equal to the smaller of the half-width and half-height of the image. The Diagonal option draws a circular radial gradient even for rectangular shaped images of radius equal to the half-diagonal of the image. The Ellipse options draws an elliptical radial gradient for rectangular shaped images of radii equal to half the width and half the height of the image. Supported in Imagemagick 6.9.2-5.
gradient:radii=x,y | Specify the x and y radii of the gradient. If the x radius and the y radius are equal, the shape of the radial gradient will be a circle. If they differ, then the shape will be an ellipse. The default values are the maximum of the half width and half height of the image. Supported in Imagemagick 6.9.2-5.
gradient:vector=x1,y1,x2,y2 | Specify the direction of the linear gradient going from vector1 (x1,y1) to vector2 (x2,y2). Color1 (fromColor) will be located at vector position x1,y1 and color2 (toColor) will be located at vector position x2,y2. Supported in Imagemagick 6.9.2-5.
histogram:unique-colors=false | Suppress the textual listing of the image's unique colors.
pango:align=left|center|right |
pango:auto-dir=true|false |
pango:ellipsize=start|middle|end |
pango:gravity-hint=natural|strong|line |
pango:hinting=none|auto|full |
pango:indent=points |
pango:justify=true|false |
pango:language=en_US|others |
pango:markup=true|false |
pango:single-paragraph=true|false |
pango:wrap=word|char|word-char |
pixel:compliance=value | Set the "pixel:" output format according to several standards. The choices are SVG, None, Undefined, MVG, X11, XPM. The default list values for (s)RGB colors in the form of (s)rgb(r,g,b) or (s)rgba(r,g,b,a). Color names will no longer be presented. For sRGB or RGB colors, the SVG, X11, XPM and None options lists color names, if they exist. The MVG and Undefined options list hex values. When colors are presented or converted to hue-based colorspaces, the values listed will be integers for hue and percents for the other two components. For other colorspaces, values may be listed as either percents or fractional value. Setting the depth to 8 will limit values to the 8-bit range, except for hue-based colors.
txt:compliance=value | Set the "txt:" format for the values in parentheses according to several standards. The choices are svg, none, undefined, mvg, x11, xpm. The default will list values for (s)RGB colors in the quantum range. The SVG, X11, XPM, MVG and None options lists values in the 8-bit range for all Q-level compiles. The undefined option also lists values in the quantum range. When colors are presented or converted to hue-based colorspaces, the values listed will be integers for hue and percents for the other two components. For other colorspaces, values may be listed as either percents or fractional value. Setting the depth to 8 will limit values to the 8-bit range, except for hue-based colors.
Identify Defines
identify:locate=minimum|maximum | Locate the coordinates of one or more image minimum or maximum.
identify:limit=number | Locate the coordinates for the number of minima or maxima specified.