DIG PNG Images

We cache images for horizon diagrams used in Production Tools by the dig.html script. At default resolution this runs 5.3 Mb, most all of which will end up in the PDF.

Fetching the pages and generating all dot files takes a few seconds. We run a separate script that generates the png files and moves them to this asset directory. This takes minutes. Maybe rsync is in order.

time (cd data for i in * do echo $i cat $i | \ dot -Tpng | \ ssh asia 'cat > .wiki/path.ward.asia.wiki.org/assets/page/production-tools/images/'$i'.png' done)

4.59s user 2.35s system 1% cpu 7:38.14 total

We now run dot from deno so only need to rsync png.

export site=path.ward.asia.wiki.org export assets=page/production-tools/images rsync -avz data/png/ asia:.wiki/$site/assets/$assets/

page/production-tools/images