Files
tldr/pages/common/convert.md
bl-ue 8ebd171d6f *: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

33 lines
923 B
Markdown

# convert
> ImageMagick image conversion tool.
> More information: <https://imagemagick.org/script/convert.php>.
- Convert an image from JPG to PNG:
`convert {{image.jpg}} {{image.png}}`
- Scale an image 50% its original size:
`convert {{image.png}} -resize 50% {{image2.png}}`
- Scale an image keeping the original aspect ratio to a maximum dimension of 640x480:
`convert {{image.png}} -resize 640x480 {{image2.png}}`
- Horizontally append images:
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
- Vertically append images:
`convert {{image1.png}} {{image2.png}} {{image3.png}} -append {{image123.png}}`
- Create a gif from a series of images with 100ms delay between them:
`convert {{image1.png}} {{image2.png}} {{image3.png}} -delay {{10}} {{animation.gif}}`
- Create an image with nothing but a solid background:
`convert -size {{800x600}} "xc:{{#ff0000}}" {{image.png}}`