From PyMOLWiki
Revision as of 20:07, 4 October 2006 by Inchoate (talk | contribs)
Jump to navigation Jump to search


png writes a png format image file of the current image to disk.


png filename, dpi


cmd.png( string file, dpi )


Transparent Backgrounds

To obtain transparent png images, use the following command before ray-tracing and exporting your scene:

set ray_opaque_background, 0

DPI Setting

Use the DPI option to have PyMol set the DPI of your image. If I execute

ray 1200,1200

then execute

png /tmp/ex.png, dpi=300

I will get a four-inch square image at 300dpi. Leaving off the dpi flag would net me a 1200x1200 image at 72dpi. This saves the intermediate step of having to use GIMP/PhotoShop/etc to rescale your photos for publication.