Skip to content

Your First Conversion

This example converts the image Test.bmp into the Gerber file Out_Test.gbr.

1. Put the image in the In folder

The image Test.bmp in the In folder

2. Write the batch file

Save this as Run.bat in the ImgScan folder. A ^ at the end of a line continues the command on the next line.

Terminal window
@echo off
cd /d "%~dp0"
Exe\ImgScan.exe ^
IMAGE=In\Test.bmp ^
OUTPUT=Out\Out_Test.gbr ^
EXPORT=GERBER ^
PIXEL=1.0 ^
THRESH=80 ^
TRASHNUM=3 ^
ACCURACY=2 ^
BDWIDTH=2000 ^
END
if %errorlevel% neq 0 (echo Conversion FAILED) else (echo Conversion OK)
pause

cd /d "%~dp0" makes the folder of the batch file the current folder, which ImgScan needs to find its helper programs. if %errorlevel% neq 0 tests the exit code.

3. Run it

Double-click Run.bat. ImgScan reports its progress:

Iamge Data loading starts
Processing 25 %
Processing 50 %
Processing 75 %
Processing 100 %
Data Cleaning starts
Image2CAD conversion was done
Conversion OK

Out_Test.gbr is now in the Out folder. Open it in LinkCAD to check it.

Other output formats

Change EXPORT and the extension of OUTPUT:

FormatEXPORTOUTPUT
DXFEXPORT=DXFOUTPUT=Out\Out_Test.dxf
GerberEXPORT=GERBEROUTPUT=Out\Out_Test.gbr
ODB++EXPORT=ODB++OUTPUT=Out\Out_Test.tgz

Next: learn every parameter on the command line page, and how to tune them in choosing the parameters.