compare,convert,identify,import,magick,mogrify,montage: update page (#10850)
This commit is contained in:
@@ -1,36 +1,37 @@
|
||||
# convert
|
||||
|
||||
> ImageMagick image conversion tool.
|
||||
> Image conversion tool.
|
||||
> Part of ImageMagick.
|
||||
> More information: <https://imagemagick.org/script/convert.php>.
|
||||
|
||||
- Convert an image from JPG to PNG:
|
||||
|
||||
`convert {{image.jpg}} {{image.png}}`
|
||||
`convert {{path/to/input_image.jpg}} {{path/to/output_image.png}}`
|
||||
|
||||
- Scale an image 50% its original size:
|
||||
- Scale an image to 50% of its original size:
|
||||
|
||||
`convert {{image.png}} -resize 50% {{image2.png}}`
|
||||
`convert {{path/to/input_image.png}} -resize 50% {{path/to/output_image.png}}`
|
||||
|
||||
- Scale an image keeping the original aspect ratio to a maximum dimension of 640x480:
|
||||
|
||||
`convert {{image.png}} -resize 640x480 {{image2.png}}`
|
||||
`convert {{path/to/input_image.png}} -resize 640x480 {{path/to/output_image.png}}`
|
||||
|
||||
- Horizontally append images:
|
||||
|
||||
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|
||||
`convert {{path/to/image1.png path/to/image2.png ...}} +append {{path/to/output_image.png}}`
|
||||
|
||||
- Vertically append images:
|
||||
|
||||
`convert {{image1.png}} {{image2.png}} {{image3.png}} -append {{image123.png}}`
|
||||
`convert {{path/to/image1.png path/to/image2.png ...}} -append {{path/to/output_image.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}}`
|
||||
`convert {{path/to/image1.png path/to/image2.png ...}} -delay {{10}} {{path/to/animation.gif}}`
|
||||
|
||||
- Create an image with nothing but a solid background:
|
||||
- Create an image with nothing but a solid red background:
|
||||
|
||||
`convert -size {{800x600}} "xc:{{#ff0000}}" {{image.png}}`
|
||||
`convert -size {{800x600}} "xc:{{#ff0000}}" {{path/to/image.png}}`
|
||||
|
||||
- Create a favicon from several images of different sizes:
|
||||
|
||||
`convert {{image1.png}} {{image2.png}} {{image3.png}} {{image.ico}}`
|
||||
`convert {{path/to/image1.png path/to/image2.png ...}} {{path/to/favicon.ico}}`
|
||||
|
Reference in New Issue
Block a user