tldr/pages/common/magick.md

26 lines
594 B
Markdown
Raw Normal View History

# magick
2019-12-15 01:23:25 +00:00
> Create, edit, compose, or convert bitmap images.
> ImageMagick version 7+. See `convert` for versions 6 and below.
2019-12-15 01:23:25 +00:00
> More information: <https://imagemagick.org/>.
- Convert file type:
`magick {{image.png}} {{image.jpg}}`
- Resize an image, making a new copy:
`magick convert -resize {{100x100}} {{image.jpg}} {{image.jpg}}`
- Create a GIF using images:
`magick {{*.jpg}} {{images.gif}}`
- Create checkerboard pattern:
`magick -size {{640x480}} pattern:checkerboard {{checkerboard.png}}`
- Convert images to individual PDF pages:
`magick {{*.jpg}} +adjoin {{page-%d.pdf}}`