4. Mol2Img

The mol2img application is an enhanced version of the mol2gif program described above, designed to generate 2D image files from connection tables. The difference lies in the fact that mol2gif is intended as a pedagogical teaching example of how to use the OpenEye oedepict library with its full source code distributed in the examples/ogham subdirectory of the Ogham distribution. The mol2img program is designed to be a more advanced command line utility, for example automatically selecting the output file format of the image file from its file extension, and supporting additional file formats including PostScript bitmaps, Microsoft BMP, Portable PixMap (PPM) and SGI's RGB file format.


Subsections