mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-30 22:57:59 +00:00
b088086b06
Now, it's all under the notebook umbrella. Seems to be appropriate as it is just my notes after all. I also updated some notes from there. I didn't keep track of what it is this time. Something about more learning notes extracted from my "Learning how to learn" course notes and then some. Lack of time and hurriness just makes it difficult to track but it should be under version control already.
1.3 KiB
1.3 KiB
Command line: ImageMagick
The swiss army knife for picture manipulation in the command line. For future reference, this mainly use v7 which has Git-style interface (which is way better, IMO).
Synopsis
magick [subcommand [subcommand_options...]]
Subcommands
convert
- resize images, convert between formats, apply filter effectsidentify
- print information on the imagemogrify
- similar toconvert
except modifies the original file
Examples
A comprehensive tool calls for a comprehensive introduction.
Resize an image by half
magick resize $INPUT -resize 50% $OUTPUT
You can find out various geometry options from the documentation.
Print the information
magick identify $INPUT
Use ImageMagick as a color picker
You can use any tool that can pipe an image to other tools.
maim --select --shader crosshair --tolerance 0 --hidecursor | magick convert - -resize 1x1\! -format '%[hex:p{0,0}]' info:-