miriam_e: from my drawing MoonGirl (Default)
[personal profile] miriam_e
If anybody is interested here are the ImageMagick commands I used for my most recent l-systems experiments.

To create a blank, white canvas:
magick -size 512x512 xc:white canvas.pngmagick -size 512x512 xc:white canvas.png


To draw a black line:
magick canvas.png -stroke "$col" -strokewidth $w -draw "line $xp,$yp $xnp,$ynp" -quality 0 canvas.png


canvas.png is the input image to be written on.

-stroke sets the color of the line (I used the variable $col, which I set to "green")

-strokewidth sets the thickness of the line (in this case $w, set to 1)

-draw and the command "line" sets the start and endpoints of the line.

-quality was ChatGPT's excellent suggestion to force an uncompressed png image. It suggested a different, incorrect command, but the idea was spot-on.

canvas.png is specified again as the output image.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

miriam_e: from my drawing MoonGirl (Default)
miriam_e

March 2026

S M T W T F S
12 34567
89 1011 121314
15161718192021
22 232425 262728
29 3031    

Style Credit

Expand Cut Tags

No cut tags
Page generated Monday, 30 March 2026 04:33 am
Powered by Dreamwidth Studios