2019-12-19 02:53:19 +00:00
|
|
|
# magick
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
> Create, edit, compose, or convert between image formats.
|
2024-06-03 12:40:59 +01:00
|
|
|
> This tool replaces `convert` in ImageMagick 7+. See `magick convert` to use the old tool in versions 7+.
|
|
|
|
> Some subcommands, such as `mogrify` have their own usage documentation.
|
|
|
|
> More information: <https://imagemagick.org>.
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Convert between image formats:
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`magick {{path/to/input_image.png}} {{path/to/output_image.jpg}}`
|
2019-12-15 01:23:25 +00:00
|
|
|
|
|
|
|
- Resize an image, making a new copy:
|
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`magick {{path/to/input_image.jpg}} -resize {{100x100}} {{path/to/output_image.jpg}}`
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a GIF out of all JPEG images in the current directory:
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`magick {{*.jpg}} {{path/to/images.gif}}`
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Create a checkerboard pattern:
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`magick -size {{640x480}} pattern:checkerboard {{path/to/checkerboard.png}}`
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a PDF file out of all JPEG images in the current directory:
|
2019-12-15 01:23:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`magick {{*.jpg}} -adjoin {{path/to/file.pdf}}`
|