← 返回命令列表

Linux command

montage 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create image grid

montage [*.jpg] [output.jpg]

Specify tile layout

montage [*.jpg] -tile [3x2] [output.jpg]

Set thumbnail size

montage [*.jpg] -geometry [200x200+5+5] [output.jpg]

Add labels

montage [*.jpg] -label "%f" [output.jpg]

Set background color

montage [*.jpg] -background [white] [output.jpg]

Add border

montage [*.jpg] -border [5] -bordercolor [gray] [output.jpg]

说明

montage creates composite images by joining multiple images together. Part of ImageMagick, it arranges images in a grid, optionally with labels, borders, and shadows. The tool is useful for creating contact sheets, thumbnails galleries, and image collages.

参数

-tile _cols_x_rows_
Grid layout.
-geometry _WxH+x+y_
Thumbnail size and spacing.
-label _string_
Label for each image.
-title _string_
Title for montage.
-background _color_
Background color.
-border _geometry_
Border size.
-bordercolor _color_
Border color.
-shadow
Add shadow.
-frame _geometry_
Add frame.
-mode _type_
Frame style.

FAQ

What is the montage command used for?

montage creates composite images by joining multiple images together. Part of ImageMagick, it arranges images in a grid, optionally with labels, borders, and shadows. The tool is useful for creating contact sheets, thumbnails galleries, and image collages.

How do I run a basic montage example?

Run `montage [*.jpg] [output.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -tile _cols_x_rows_ do in montage?

Grid layout.