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}}`
|
2018-08-08 06:27:08 +01:00
|
|
|
|
|
|
|
- Create a gif from a series of images with 100ms delay between them:
|
|
|
|
|
|
|
|
`convert {{image1.png}} {{image2.png}} {{image3.png}} -delay {{100}} {{animation.gif}}`
|
2019-04-04 07:48:37 +01:00
|
|
|
|
|
|
|
- Create an image with nothing but a solid background:
|
|
|
|
|
|
|
|
`convert -size {{800x600}} "xc:{{#ff0000}}" {{image.png}}`
|