Transparent overlay of grid lines imperfect
Posted: 2012-03-10T19:37:42-07:00
If a constant size grid is to be applied to a large number of images, a couple of ways to do it are:
a) Make an image of the grid on say a white background, then overlay that grid onto the images:
eg after creating the grid file
convert mapin.gif \
\( gridfile.gif -crop 2819x1542+0+0 -repage 0x0+0+0 \
-transparent white \) \
-flatten Mapout1.gif
Typical time to do this: 10 sec
b) Draw the grid directly onto the image
convert mapin.gif \
-stroke 'rgb(111,198,242)' -strokewidth 1 \
-draw "stroke-opacity 1 path 'drawstr'" \
Mapout2.gif
Typical time to do this: 60 sec
Thus a) is significantly faster than b) when 100s of images are involved.
However, the grid lines from a) consist of an unwanted white line adjacent to the required blue grid line.
Something wrong with the script?
A section of the two Mapout[12].gif can be seen at www.discway.com.au/cmad
Regards
a) Make an image of the grid on say a white background, then overlay that grid onto the images:
eg after creating the grid file
convert mapin.gif \
\( gridfile.gif -crop 2819x1542+0+0 -repage 0x0+0+0 \
-transparent white \) \
-flatten Mapout1.gif
Typical time to do this: 10 sec
b) Draw the grid directly onto the image
convert mapin.gif \
-stroke 'rgb(111,198,242)' -strokewidth 1 \
-draw "stroke-opacity 1 path 'drawstr'" \
Mapout2.gif
Typical time to do this: 60 sec
Thus a) is significantly faster than b) when 100s of images are involved.
However, the grid lines from a) consist of an unwanted white line adjacent to the required blue grid line.
Something wrong with the script?
A section of the two Mapout[12].gif can be seen at www.discway.com.au/cmad
Regards