web page logo


Converting a large number of Bitmaps
into GDSII using a simple script

We had a customer who needed to convert hundreds of bitmaps into GDSII - the individual GDSII files would then be merged (each stepped by one page width and height) into a larger GDSII file.

This was accomplished as follows:

  1. all the files were placed into a single directory
  2. all files had the suffix .tif
  3. a batch (script) command as shown below was used to sequence through the files, producing the GDSII output.

Script Syntax

for %%f in (*.tif) do c:\wcad\tiff2mebes\tiff2mebes.exe -gds -pixel:2 %%f

The for statement will cycle through all files ending in .tif until no more are available.

Since tiff2mebes automatically generates the output name using the base of the input name, each output file will be unique.