Yes as @victor-henriquez noted you can use montage
but it’s a bit tricky, I got into it by activating the -verbose
output and see that it created an inkscape
command and analysing that solved this issue for me.
montage -version
# Version: ImageMagick 7.0.7-31 Q16 x86_64 20180506
I wanted …
- … to label desktop icons: use
-label
and -pointsize
(tricky to get font size correct via pointsize but depending on density)
- … to increase
-density
(it’s tricky to find a suitable number for the output)
- … to stack and tile them orderly: use
-tile 15x30
(here 15 columns x 30 rows)
- … to add a margin on each sub-image: use
-geometry '+40+0'
(adds 40px horizontally but 0px vertically)
The resulting command was (add -verbose
to get detailed processing information):
montage -label '%f' -pointsize 2 -density 300 *.svg \
-tile 15x30 \
-geometry '+40+0' \
./papirus-icons-mimetypes.png
If you specify additionally the desired output pixel size geometry, eg. 96 pixels by 96 pixels -geometry '96x96+40+0'
, it becomes even more complex to understand what -density
plays a role at. I failed to figure it out deeply ;-)