tldr/pages/common/convert.md

20 lines
469 B
Markdown
Raw Normal View History

# convert
> Imagemagick image conversion tool
- Convert an image from JPG to PNG
`convert {{image.jpg}} {{image.png}}`
2015-10-22 08:31:52 +01:00
- Scale an image 50% it's 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}}`
2015-10-22 08:31:52 +01:00
- Horizontally append images
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`