Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.13 KB

cad2d.md

File metadata and controls

36 lines (19 loc) · 1.13 KB

CAD 2D. Raster and Vector

🚧 This documentation is WIP

Raster

Screenshots

We recommend Flameshot

Imagemagick CLI

sudo apt install imagemagick in Linux/WSL or brew install imagemagick in macOS

Imagemagick is swiss army command line tool for image processing.

So to resize an image called bigimage.jpg inside a 640x640 envelope, maintaning its aspect ratio and save it to a file named smallimage.jpg we would use:

convert bigimage.jpg -resize 640x640 smallimage.jpg

Or you could modify them in place (overwrite original image). The following will resize all the .jpg files of your current folder:

mogrify -resize 640x640 *.jpg

One of the utilities of graphicsmagick is the ability to compose images in a horizontal strip, which is very useful for documenting processes.

convert image1.jpg image2.jpg -geometry x400 +append stripimage.jpg

Vectorizing a raster image

Learn how to vectorize a B/W image in Inkscape. You will need to do this many times.


Back to Summary