gm composite
|
|
NAME
|
|
composite - composite images together.
|
Contents
|
Synopsis
|
|
composite [ options ... ] change-image base-image
[ mask-image ] output-image
|
Description
|
|
composite composites (combines) images to create new images.
base-image is the base image and change-image contains the changes.
ouput-image is the result, and normally has the same dimensions
as base-image.
The optional mask-image can be used to provide opacity information
for change-image when it has none or if you want a different mask.
A mask image is typically grayscale and the same size as
base-image. If mask-image is not grayscale, it is converted
to grayscale and the resulting intensities are used as opacity
information.
|
Examples
|
|
To composite an image of a cockatoo with a perch, use:
gm composite cockatoo.miff perch.ras composite.miff
To compute the difference between images in a series, use:
gm composite -compose difference series.2 series.1 difference.miff
To composite an image of a cockatoo with a perch starting at location (100,150),
use:
gm composite -geometry +100+150 cockatoo.miff perch.ras composite.miff
To tile a logo across your image of a cockatoo, use
gm convert +shade 30x60 cockatoo.miff mask.miff
gm composite -compose bumpmap -tile logo.png
cockatoo.miff mask.miff composite.miff
To composite a red, green, and blue color plane into a single composite image,
try
gm composite -compose CopyGreen green.png red.png red-green.png
gm composite -compose CopyBlue blue.png red-green.png composite.png
|
Back to Contents
Options
|
|
Options are processed in command line order. Any option you specify on
the command line remains in effect only for the image that follows. All
options are reset to their default values after each image is read.
For a more detailed description of each option, see
Options, above.
GraphicsMagick(1).
| decrypt image with this password |
| blue chromaticity primary point |
| preferred number of colors in the image |
| annotate an image with a comment |
| the type of image composition |
| the type of image compression |
|
-debug <events>
|
| add coder/decoder specific options |
| horizontal and vertical resolution in pixels of the image |
|
-displace <horizontal scale>x<vertical scale>
|
| shift image pixels as defined by a displacement map |
| specifies the X server to contact |
| dissolve an image into another by the given percent |
| apply Floyd/Steinberg error diffusion to the image |
| specify the text encoding |
| specify endianness (MSB, LSB, or Native) of image |
| use this type of filter when resizing an image |
| use this font when annotating the image with text |
|
-geometry <width>x<height>{+-}<x>{+-}<y>{%}{@}{!}{^}{<}{>}
|
| preferred size and location of the Image window. |
| direction primitive gravitates to when annotating the image. |
| green chromaticity primary point |
|
-help
|
| the type of interlacing scheme |
| assign a label to an image |
| Disk, File, Map, Memory, Pixels, or Threads resource limit |
| Specify format for debug log |
| store matte channel if the image has one |
|
-monitor
|
|
-monochrome
|
| transform the image to black and white |
| replace every pixel with its complementary color |
|
-page <width>x<height>{+-}<x>{+-}<y>{%}{!}{<}{>}
|
| size and location of an image canvas |
| add ICM, IPTC, or generic profile to image |
| JPEG/MIFF/PNG/TIFF compression level |
| apply a color translation matrix to image channels |
| red chromaticity primary point |
|
-repage <width>x<height>+xoff+yoff[!]
|
| Adjust image page offsets |
|
-resize <width>x<height>{%}{@}{!}{<}{>}
|
| chroma subsampling factors |
|
-set <attribute> <value>
|
|
-size <width>x<height>{+offset}
|
| width and height of the image |
| hide watermark within an image |
| composite two images to create a stereo anaglyph |
| remove all profiles and text attributes from the image |
| resize an image (quickly) |
| tree depth for the color reduction algorithm |
| the units of image resolution |
|
-unsharp <radius>{x<sigma>}{+<amount>}{+<threshold>}
|
| sharpen the image with an unsharp mask operator |
| print detailed information about the image |
| print GraphicsMagick version string |
|
-watermark <brightness>x<saturation>
|
| percent brightness and saturation of a watermark |
| write an intermediate image [convert, composite] |
For a more detailed description of each option, see
Options, above.
GraphicsMagick(1).
|
Back to Contents
Environment
|
Back to Contents
Environment
|
|
|
COLUMNS
|
| Output screen width. Used when formatting text for the screen. Many
Unix systems keep this shell variable up to date, but it may need to be
explicitly exported in order for GraphicsMagick to see it. |
|
DISPLAY
|
| X11 display ID (host, display number, and screen in the form
hostname:display.screen). |
|
HOME
|
| Location of user's home directory. GraphicsMagick searches for
configuration files in $HOME/.magick if the directory exists. See
MAGICK_CODER_MODULE_PATH, MAGICK_CONFIGURE_PATH, and
MAGICK_B BGCOLOR="#FFFFFF">
-recolor <matrix>
|
| apply a color translation matrix to image channels |
| red chromaticity primary point |
|
-repage <width>x<height>+xoff+yoff[!]
|
| Adjust image page offsets |
|
-resize <width>x<height>{%}{@}{!}{<}{>}
|
| chroma subsampling factors |
| | |