OS Manuals

/usr/bin/gm

GraphicsMagick provides a set of commandline tools and programming APIs for manipulating, editing, and converting raster and vector images.

From graphicsmagick 1.3.49-r2 (enterprise-packages), captured 2026-11-08 by running gm -help (exit 0). permalink

GraphicsMagick 1.3.49 2026-10-08 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2026 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.
Usage: /usr/bin/gm help command [options ...]

Where commands include:
    animate - animate a sequence of images
      batch - issue multiple commands in interactive or batch mode
  benchmark - benchmark one of the other commands
    compare - compare two images
  composite - composite images together
    conjure - execute a Magick Scripting Language (MSL) XML script
    convert - convert an image or sequence of images
    display - display an image on a workstation running X
       help - obtain usage message for named command
   identify - describe an image or image sequence
     import - capture an application or X server screen
    mogrify - transform an image or sequence of images
    montage - create a composite image (in a grid) from separate images
       time - time one of the other commands
    version - obtain release version
Options (195)
OptionDescriptionSource
-adjoinjoin images into a single multi-image fileman
-affine matrixdrawing transform matrixman
-antialiasremove pixel aliasingman
-appendappend a set of imagesman
-asc-cdl specapply ASC CDL color transformman
-authenticate stringdecrypt image with this passwordman
-auto-orientorient (rotate) image so it is uprightman
-averageaverage a set of imagesman
-backdropdisplay the image centered on a backdrop.man
-background colorthe background colorman
-blue-primary xblue chromaticity primary pointman
-blur radius>{x<sigmablur the image with a Gaussian operatorman
-border width>x<heightsurround the image with a border of colorman
-bordercolor colorthe border colorman
-borderwidth geometrythe border widthman
-box colorset the color of the annotation bounding boxman
-channel typethe type of channelman
-charcoal factorsimulate a charcoal drawingman
-chop width>x<height>{+-}<x>{+-}<y>{%remove pixels from the interior of an imageman
-clipapply the clipping path, if one is presentman
-coalescemerge a sequence of imagesman
-colorize valuecolorize the image with the pen colorman
-colormap typedefine the colormap typeman
-colors valuepreferred number of colors in the imageman
-colorspace valuethe type of colorspaceman
-comment stringannotate an image with a commentman
-compose operatorthe type of image compositionman
-compress typethe type of image compressionman
-contrastenhance or reduce the image contrastman
-convolve kernelconvolve image with the specified convolution kernelman
-create-directoriescreate output directory if requiredman
-crop width>x<height>{+-}<x>{+-}<y>{%preferred size and location of the cropped imageman
-cycle amountdisplace image colormap by amountman
-debug eventsenable debug printoutman
-deconstructbreak down an image sequence into constituent partsman
-define key>{=<valueadd coder/decoder specific options This option creates one or more definitions for coders and decoders to use while reading and writing image data.man
-delay 1/100thsdisplay the next image after pausingman
-density width>x<heighthorizontal and vertical resolution in pixels of the image This option specifies the image resolution to store while encoding a raster image or the canvas resolution while rendering (reading) vector…man
-depth valuedepth of the imageman
-descendobtain image by descending window hierarchyman
-despecklereduce the speckles within an imageman
-displace horizontalshift image pixels as defined by a displacement mapman
-dispose methodGIF disposal methodman
-dissolve percentdissolve an image into another by the given percentman
-ditherapply Floyd/Steinberg error diffusion to the imageman
-draw stringannotate an image with one or more graphic primitivesman
-edge radiusdetect edges within an imageman
-emboss radiusemboss an imageman
-encoding typespecify the text encodingman
-endian typespecify endianness (MSB, LSB, or Native) of imageman
-enhanceapply a digital filter to enhance a noisy imageman
-equalizeperform histogram equalization to the imageman
-extent width>x<height>{+-}<x>{+-}<ycomposite image on background color canvas imageman
-file filenamewrite annotated difference image to fileman
-fill colorcolor to use when filling a graphic primitive Numeric colors specifications in GraphicsMagick are similar to RGB and RGBA color values as used by SVG and CSS Color Module Level 3…man
-filter typeuse this type of filter when resizing an imageman
-flattenflatten a sequence of imagesman
-flipcreate a "mirror image"man
-flopcreate a "mirror image"man
-font nameuse this font when annotating the image with textman
-foreground colordefine the foreground colorman
-format typethe image format typeman
-frame width>x<height>+<outersurround the image with an ornamental borderman
-fuzz distance>{%colors within this Euclidean distance are considered equalman
-gamma valuelevel of gamma correctionman
-gaussian radius>{x<sigmablur the image with a Gaussian operatorman
-geometry width>x<height>{+-}<x>{+-}<y>{%}{@}{!}{^Specify dimension, offset, and resize options.man
-gravity typedirection primitive gravitates to when annotating the image.man
-green-primary xgreen chromaticity primary pointman
-hald-clut clutapply a Hald CLUT to the imageman
-helpprint usage instructionsman
-highlight-color colorpixel annotation colorman
-highlight-style stylepixel annotation styleman
-iconGeometry geometryspecify the icon geometryman
-iconiciconic animationman
-immutablemake image immutableman
-implode factorimplode image pixels about the centerman
-intent typeuse this type of rendering intent when managing the image colorman
-interlace typethe type of interlacing schememan
-label nameassign a label to an imageman
-lat width>x<height>{+-}<offset>{%perform local adaptive thresholdingman
-level black_pointadjust the level of image contrastman
-limit typeDisk, File, Images, Map, Memory, Pixels, Width, Height, Read, Threads, or Write resource limitman
-linewidththe line width for subsequent draw operationsman
-list typethe type of listman
-log stringSpecify format for debug logman
-loop iterationsadd Netscape loop extension to your GIF animationman
-magnifymagnify the imageman
-map filenamechoose a particular set of colors from this imageman
-mask filenameSpecify a clipping maskman
-mattestore matte channel if the image has oneman
-mattecolor colorspecify the color to be used with the -frame optionman
-maximum-error limitspecifies the maximum amount of total image errorman
-median radiusapply a median filter to the imageman
-metric metriccomparison metric (MAE, MSE, PAE, PSNR, RMSE)man
-minify factorminify the imageman
-mode valuemode of operationman
-monitorshow progress indicationman
-monochrometransform the image to black and whiteman
-morph framesmorphs an image sequenceman
-mosaiccreate a mosaic from an image or an image sequenceman
-motion-blur radius>{x<sigma>}{+angleSimulate motion blurman
-namename an imageman
-negatereplace every pixel with its complementary colorman
-noise radius|typeadd or reduce noise in an imageman
-noopNOOP (no option)man
-normalizetransform image to span the full range of color valuesman
-opaque colorchange this color to the pen color within the imageman
-ordered-dither channeltypeordered dither the imageman
-output-directory directoryoutput files to directoryman
-orient orientationSet the image orientation attributeman
-page width>x<height>{+-}<x>{+-}<y>{%}{!size and location of an image canvasman
-paint radiussimulate an oil paintingman
-pause secondspause between animation loops [animate]man
-pen color(This option has been replaced by the -fill option)man
-pingefficiently determine image characteristicsman
-pointsize valuepointsize of the PostScript, X11, or TrueType fontman
-preview typeimage preview typeman
-process commandprocess a sequence of images using a process moduleman
-profile filenameman
-preserve-timestamppreserve the original timestamps of the fileman
-quality valueJPEG/MIFF/PNG/TIFF compression level For the JPEG and MPEG image formats, quality is 0 (lowest image quality and highest compression) to 100 (best quality but least effective compression).man
-raise width>x<heightlighten or darken image edgesman
-random-threshold channeltyperandom threshold the imageman
-recolor matrixapply a color translation matrix to image channelsman
-red-primary xred chromaticity primary pointman
-region width>x<height>{+-}<x>{+-}<yapply options to a portion of the imageman
-remoteperform a X11 remote operationman
-renderrender vector operationsman
-resample horizontal>x<verticalResample image to specified horizontal and vertical resolutionman
-resize width>x<height>{%}{@}{!resize an imageman
-roll +-}<x>{+-}<yroll an image vertically or horizontallyman
-rotate degreesrotate the imageman
-sample geometryscale image using pixel samplingman
-sampling-factor horizontal_factor>x<vertical_factorchroma subsampling factorsman
-scale geometryscale the image.man
-scene valueset scene numberman
-scenes value-valuerange of image scene numbers to readman
-screenspecify the screen to captureman
-set attributeset an image attributeman
-segment clustersegment an imageman
-shade azimuth>x<elevationshade the image using a distant light sourceman
-shadow radius>{x<sigmashadow the montageman
-shared-memoryuse shared memoryman
-sharpen radius>{x<sigmasharpen the imageman
-shave width>x<height>{%shave pixels from the image edgesman
-shear xshear the image along the X or Y axisman
-silentoperate silentlyman
-size width>x<height>{+offsetwidth and height of the imageman
-snaps valuenumber of screen snapshotsman
-solarize factornegate all pixels above the threshold levelman
-spread amountdisplace image pixels by a random amountman
-stegano offsethide watermark within an imageman
-stereocomposite two images to create a stereo anaglyphman
-stripremove all profiles and text attributes from the imageman
-stroke colorcolor to use when stroking a graphic primitiveman
-strokewidth valueset the stroke widthman
-swirl degreesswirl image pixels about the centerman
-text-font namefont for writing fixed-width textman
-texture filenamename of texture to tile onto the image backgroundman
-threshold value>{%threshold the imageman
-thumbnail width>x<height>{%}{@}{!resize an image (quickly)man
-tile filenametile image when filling a graphic primitiveman
-title stringassign title to displayed image [animate, display, montage]man
-transformtransform the imageman
-transparent colormake this color transparent within the imageman
-treedepth valuetree depth for the color reduction algorithmman
-trimtrim an imageman
-type typethe image typeman
-update secondsdetect when image file is modified and redisplay.man
-units typethe units of image resolutionman
-unsharp radius>{x<sigma>}{+<amount>}{+<thresholdsharpen the image with an unsharp mask operatorman
-use-pixmapuse the pixmapman
-verboseprint detailed information about the imageman
-versionprint detailed GraphicsMagick version/build informationman
-view stringFlashPix viewing parametersman
-virtual-pixel methodspecify contents of "virtual pixels"man
-visual typeanimate images using this X visual typeman
-watermark brightness>x<saturationpercent brightness and saturation of a watermarkman
-wave amplitude>x<wavelengthalter an image along a sine waveman
-white-point xchromaticity white pointman
-window idmake image the background of a windowman
-window-groupspecify the window groupman
-write filenamewrite an intermediate image [convert, composite]man
-echo on|offcommand echo on or offman
-escape unix|windowsParse using unix or windows syntaxman
-fail texttext to print if a command failsman
-feedback on|offenable error feedbackman
-pass texttext to print if a command passesman
-prompt textPrompt text to use for command lineman
-stop-on-error on|offSpecify if command processing stops on errorman
-duration durationduration to run benchmark Specify the number of seconds to run the benchmark.man
-iterations loopsnumber of command iterations Specify the number of iterations to run the benchmark.man
-rawcsvPrint results in CSV format Print results in a comma-separated value (CSV) format which is easy to parse for plotting or importing into a spreadsheet or database.man
-stepthreads stepexecute a per-thread benchmark ramp Execute a per-thread benchmark ramp, incrementing the number of threads at each step by the specified value.man
Examples (3) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.