[Gslug-general] adding gridlines to an image

Jonathan Nicol jnicol at bluegecko.net
Thu Dec 11 22:53:26 PST 2008


OK, I was bored :)

#!/bin/bash
increment=20;
xstop=500;
ystop=580;

for ((pos=$increment; pos <= $xstop; ((pos += $increment)) )); do
	convert minixlogoultraoe8.png -strokewidth 1 -draw "line $pos,0 $pos, 
600" minixlogoultraoe8.png;
done;
for ((pos=$increment; pos <= $ystop; (( pos += $increment)) )); do
	convert minixlogoultraoe8.png -strokewidth 1 -draw "line 0,$pos  
520,$pos" minixlogoultraoe8.png;
done;


Jonathan


On Dec 11, 2008, at 9:17 PM, Adam Monsen wrote:

> Dear Lazyweb,
>
> Are there any Gimp/ImageMagick/Inkscape/whatever experts on this list
> that wouldn't mind adding gridlines to this image?
>
> http://tinyurl.com/6juoq6
>
> The gridlines should be black, horizontal and vertical, as thin as
> possible, and at the edges of the blocks in the image.
>
> And if you do, would you mind describing how it was done?
>
> -- 
> Adam Monsen
> _______________________________________________
> Gslug-general mailing list
> Gslug-general at gslug.org
> http://lists.gslug.org/mailman/listinfo/gslug-general



More information about the Gslug-general mailing list