wiki/_next/data/Ie9t5zutrXP6Of75Cb5xF/cli.imagemagick.json
2022-07-29 15:41:17 +00:00

1 line
7.0 KiB
JSON

{"pageProps":{"metadata":{"date":"\"2021-05-09 19:55:50 +08:00\"","date_modified":"\"2021-07-20 23:31:03 +08:00\"","language":"en","source":""},"title":"Command line: ImageMagick","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"synopsis"},"children":[{"type":"text","value":"Synopsis"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.imagemagick#synopsis"},"children":[{"type":"text","value":"Synopsis"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"subcommands"},"children":[{"type":"text","value":"Subcommands"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.imagemagick#subcommands"},"children":[{"type":"text","value":"Subcommands"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"examples"},"children":[{"type":"text","value":"Examples"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.imagemagick#examples"},"children":[{"type":"text","value":"Examples"}]},{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-2"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"resize-an-image-by-half"},"children":[{"type":"text","value":"Resize an image by half"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.imagemagick#resize-an-image-by-half"},"children":[{"type":"text","value":"Resize an image by half"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"print-the-information"},"children":[{"type":"text","value":"Print the information"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.imagemagick#print-the-information"},"children":[{"type":"text","value":"Print the information"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"use-imagemagick-as-a-color-picker"},"children":[{"type":"text","value":"Use ImageMagick as a color picker"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.imagemagick#use-imagemagick-as-a-color-picker"},"children":[{"type":"text","value":"Use ImageMagick as a color picker"}]}]}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The swiss army knife for picture manipulation in the command line.\nFor future reference, this mainly use v7 which has Git-style interface (which is way better, IMO).\n"}]},{"type":"element","tagName":"h1","properties":{"id":"synopsis"},"children":[{"type":"text","value":"Synopsis"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"magick [subcommand [subcommand_options...]]\n"}]}]},{"type":"element","tagName":"h1","properties":{"id":"subcommands"},"children":[{"type":"text","value":"Subcommands"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"convert"}]},{"type":"text","value":" - resize images, convert between formats, apply filter effects\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"identify"}]},{"type":"text","value":" - print information on the image\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"mogrify"}]},{"type":"text","value":" - similar to "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"convert"}]},{"type":"text","value":" except modifies the original file\n"}]}]}]},{"type":"element","tagName":"h1","properties":{"id":"examples"},"children":[{"type":"text","value":"Examples"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A comprehensive tool calls for a comprehensive introduction.\n"}]},{"type":"element","tagName":"h2","properties":{"id":"resize-an-image-by-half"},"children":[{"type":"text","value":"Resize an image by half"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"magick resize $INPUT -resize 50% $OUTPUT\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can find out various geometry options from the "},{"type":"element","tagName":"a","properties":{"href":"https://imagemagick.org/script/command-line-processing.php#geometry"},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":".\n"}]},{"type":"element","tagName":"h2","properties":{"id":"print-the-information"},"children":[{"type":"text","value":"Print the information"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"magick identify $INPUT\n"}]}]},{"type":"element","tagName":"h2","properties":{"id":"use-imagemagick-as-a-color-picker"},"children":[{"type":"text","value":"Use ImageMagick as a color picker"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can use any tool that can pipe an image to other tools.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"maim --select --shader crosshair --tolerance 0 --hidecursor | magick convert - -resize 1x1\\! -format '%[hex:p{0,0}]' info:-\n"}]}]}]},"backlinks":[]},"__N_SSG":true}