tldr/pages/common/magick.md

27 lines
863 B
Markdown
Raw Normal View History

# magick
2019-12-15 01:23:25 +00:00
> Create, edit, compose, or convert between image formats.
> 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
- Convert between image formats:
2019-12-15 01:23:25 +00: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:
`magick {{path/to/input_image.jpg}} -resize {{100x100}} {{path/to/output_image.jpg}}`
2019-12-15 01:23:25 +00:00
- Create a GIF out of all JPEG images in the current directory:
2019-12-15 01:23:25 +00:00
`magick {{*.jpg}} {{path/to/images.gif}}`
2019-12-15 01:23:25 +00:00
- Create a checkerboard pattern:
2019-12-15 01:23:25 +00:00
`magick -size {{640x480}} pattern:checkerboard {{path/to/checkerboard.png}}`
2019-12-15 01:23:25 +00:00
- Create a PDF file out of all JPEG images in the current directory:
2019-12-15 01:23:25 +00:00
`magick {{*.jpg}} -adjoin {{path/to/file.pdf}}`