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 spon-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

January 2026

S M T W T F S
    1 23
45678910
11121314151617
18192021222324
252627 28293031

Style Credit

Expand Cut Tags

No cut tags
Page generated Tuesday, 3 February 2026 12:42 pm
Powered by Dreamwidth Studios