#!/bin/sh
#
# AutoTracer startup script
#
IMG_INPUT=I2C_Intf_V7.png
IMGMIRROR=I2C_Intf_V7m.png
DXFOUTPUT=I2C_Intf_V7.dxf
echo "Creating mirrored image..."
pngtopnm $IMG_INPUT|pnmflip -leftright|pnmtopng>$IMGMIRROR
echo "Tracing mirrored image..."
autotrace -report-progress \
-output-format=dxf \
-corner-surround=1 \
-filter-iterations=1 \
-background-color=000000 \
-corner-always-threshold=30 \
-output-file=$DXFOUTPUT \
-dpi=600 $IMGMIRROR
rm $IMGMIRROR