2014-05-30 19:27:55 +01:00
|
|
|
# convert
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Imagemagick image conversion tool.
|
2014-05-30 19:27:55 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Convert an image from JPG to PNG:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
|
|
|
`convert {{image.jpg}} {{image.png}}`
|
|
|
|
|
2017-11-24 16:19:06 +00:00
|
|
|
- Scale an image 50% its original size:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
|
|
|
`convert {{image.png}} -resize 50% {{image2.png}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Scale an image keeping the original aspect ratio to a maximum dimension of 640x480:
|
2015-12-31 10:54:03 +00:00
|
|
|
|
|
|
|
`convert {{image.png}} -resize 640x480 {{image2.png}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Horizontally append images:
|
2014-05-30 19:27:55 +01:00
|
|
|
|
|
|
|
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|