TAGS: WHERNTO: techniq

Since we are going text/prg based for most things, we may consider imagemagick as a fairly regular replacement for gimp. This effort will also lead to understanding graphic software terminology.
Imagemagick website and Examples of ImageMagick Usage
Waiting items below will be elaborated on and some eliminated.
Quick Fixes
stitching gifs together
as explained here, the idea is to separate frames, join them, put it all back together: convert 1.gif -coalesce a-%04d.gif convert 2.gif -coalesce b-%04d.gif
for f in a-*.gif; do convert $f ${f/a/b} +append $f; done # append frames
convert -loop 0 -delay 20 a-*.gif result.gif # rejoin frames
montage
in a dir with jpg,png this is the sort of thing that can be done: magick montage -geometry 99x55>+2+2 -tile 4x1 *.{jpg,png} 00.jpg
crop
open or import image mark crop with one of the tools (rect,ellipse …) make tool transparent select additionally (hold shift) the entire image object > set clip
make png transparent
convert test.png -transparent white trans.png
Features and Capabilities
Command-line processing: utilize ImageMagick from the command-line.
ImageMagick command-line consists of
-
one or more required input filenames:
- filename globbing magick *.jpg images.gif
- explicit image format magick -size 640x480 -depth 8 rgb:image image.png
- using built-in images and patterns magick -size 640x480 pattern:checkerboard checkerboard.png
- STDIN, STDOUT, and file descriptors not sure what is going on??
- selecting certain frames from an image magick 'images.gif[0]' image.png magick 'images.gif[0-3]' images.mng
- selecting a region of an image magick -size 6000x4000 -depth 8 'rgb:image[600x400+1900+2900]' image.jpg
- forcing an inline image resize magick '*.jpg' -resize 120x120 thumbnail%03d.png but better magick '*.jpg[120x120]' thumbnail%03d.png
- forcing an inline image crop magick '*.jpg' -crop 120x120+10+5 thumbnail%03d.png
- filename references magick @myimages.txt mymovie.gif magick image-%d.jpg[1-5]
- zero, one, or more image settings.
- zero, one, or more image operators.
- zero, one, or more image sequence operators.
- zero, one, or more image stacks.
- zero or one output image filenames