2019-12-19 02:53:19 +00:00
|
|
|
# magick
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
> Create, edit, compose, or convert between image formats.
|
2024-06-03 13:40:59 +02: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-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
- Convert between image formats:
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
`magick {{path/to/input_image.png}} {{path/to/output_image.jpg}}`
|
2019-12-14 20:23:25 -05:00
|
|
|
|
|
|
|
- Resize an image, making a new copy:
|
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
`magick {{path/to/input_image.jpg}} -resize {{100x100}} {{path/to/output_image.jpg}}`
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2024-03-14 02:01:06 -03:00
|
|
|
- Create a GIF out of all JPEG images in the current directory:
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
`magick {{*.jpg}} {{path/to/images.gif}}`
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
- Create a checkerboard pattern:
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
`magick -size {{640x480}} pattern:checkerboard {{path/to/checkerboard.png}}`
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2024-03-14 02:01:06 -03:00
|
|
|
- Create a PDF file out of all JPEG images in the current directory:
|
2019-12-14 20:23:25 -05:00
|
|
|
|
2023-10-05 08:52:40 +02:00
|
|
|
`magick {{*.jpg}} -adjoin {{path/to/file.pdf}}`
|