Linux command
composite.im6 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Overlay one image
composite.im6 [overlay.png] [background.png] [output.png]
Place overlay at a specific position
composite.im6 -geometry +[100]+[50] [overlay.png] [background.png] [output.png]
Blend images
composite.im6 -blend [50]% [image1.png] [image2.png] [output.png]
Apply multiply
composite.im6 -compose multiply [overlay.png] [background.png] [output.png]
Dissolve overlay
composite.im6 -dissolve [75]% [overlay.png] [background.png] [output.png]
Center the overlay
composite.im6 -gravity center [overlay.png] [background.png] [output.png]
说明
composite.im6 is the ImageMagick version 6 command for combining images through compositing operations. It is functionally identical to composite but explicitly references the ImageMagick 6 installation, useful on systems where both ImageMagick 6 and 7 are installed. The tool overlays one image on another using various blending modes and positioning options. It supports mask-based compositing, watermarking, and dozens of composition operators matching professional image editing capabilities. On most systems, this command exists as a versioned alternative to ensure compatibility with scripts written for ImageMagick 6 when ImageMagick 7 is also present. The im6 suffix indicates the legacy API version.
参数
- -compose _METHOD_
- Compositing operator: over, multiply, screen, overlay, darken, lighten, etc.
- -geometry _GEOMETRY_
- Position offset for overlay (+X+Y format).
- -gravity _TYPE_
- Anchor point: center, north, south, east, west, northeast, etc.
- -blend _GEOMETRY_
- Blend percentages for source and destination.
- -dissolve _PERCENT_
- Dissolve overlay into background at specified percentage.
- -watermark _BRIGHTNESS_
- Apply overlay as watermark with given brightness.
- -tile
- Tile the overlay image across the background.
- -quality _VALUE_
- Output compression quality (0-100).
- -stegano _OFFSET_
- Hide watermark within image using steganography.
- -stereo _+X+Y_
- Create a stereo anaglyph from two images.
- -alpha _TYPE_
- Activate, deactivate, or reset the alpha channel.
FAQ
What is the composite.im6 command used for?
composite.im6 is the ImageMagick version 6 command for combining images through compositing operations. It is functionally identical to composite but explicitly references the ImageMagick 6 installation, useful on systems where both ImageMagick 6 and 7 are installed. The tool overlays one image on another using various blending modes and positioning options. It supports mask-based compositing, watermarking, and dozens of composition operators matching professional image editing capabilities. On most systems, this command exists as a versioned alternative to ensure compatibility with scripts written for ImageMagick 6 when ImageMagick 7 is also present. The im6 suffix indicates the legacy API version.
How do I run a basic composite.im6 example?
Run `composite.im6 [overlay.png] [background.png] [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -compose _METHOD_ do in composite.im6?
Compositing operator: over, multiply, screen, overlay, darken, lighten, etc.