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.
|
2019-12-19 02:53:19 +00:00
|
|
|
> ImageMagick version 7+. See `convert` for versions 6 and below.
|
2019-12-15 01:23:25 +00:00
|
|
|
> More information: <https://imagemagick.org/>.
|
|
|
|
|
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}}`
|