Creating Images of Jmol Models on Same Web Page (ver 1.1)

Output Size: Width Height Applet Size
Copy To: br Image

Images of the Jmol model can be created on the same page as the jmol applet. Options for doing so depend upon browser compatibility. Base64-encoding compliant browsers running from a php-enabled server can direct the base64-encoded image directly to an image element. br compatible browsers can post a base64-decoded image to an br. Some ideas and code for this page have come from Exporting from Jmol applet an image of the current view by Angel Herrez and from Base64 encoded images for Internet Explorer by Dean Edwards. "Output Size" can be set as pixels (e.g., '300') or percent ('30%'), but only affects image size as it appears on the web page (not the saved or copied image), and has a browser-dependent effect on how the image appears in an br. This page and the base64_3.php file can be downloaded here zip file You will still need the JmolApplet files and Jmol.js, which you can obtainfrom Jmol distribution.

Comments and suggestions are welcome: Steven R. Spilatro, Dept of Biology & Environmental Science, Marietta College.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.