Steven R. Spilatro wrote:
> Hi everyone,
> I've created a demo page for placing images of 
> the Jmol model into the same web page, drawing 
> upon some ideas and code from Angel Herráez and 
> Dean Edwards.  For compliant browsers, the 
> base64-encoded Jmol image is simply directly to 
> an image element; for non-base64 compliant 
> browsers, the decoded image is targeted to an 
> Iframe. I've tested in several browsers (but not 
> Chrome); while the image can be copied and pasted 
> from either type of element; I find that a saved 
> file from the Iframe does not open in Photoshop. .
> 
> I welcome comments and feedback. The page is at:
> http://www.marietta.edu/~spilatrs/MnQuiry/JmolDemo/jmolImgCopy.html
> 

---- Test System ----------------
Browser: Firefox 2.0.0.16
 Java  : 1.4.2_18
 OS    : Linux, OpenSuSE 10.2
---------------------------------

When I first tried it with Firefox 2 on Linux I got the image (with
"image" checked). Because the image looked distorted I wanted to look at
the properties using the context menu but Firefox crashed.

After restarting the browser the image creation (with "image" checked)
didn't work and I got the following Javascript error messages:

  jmolWaitScript is not a function
  applet.getPropertyAsString is not a function

After reloading the page it worked again (no new error messages, only
after "shift reload" later).
The properties dialog worked this time and showed "400x300".
When I saved it and opened it with a graphics program it was not
distorted and as size was shown "435x471".
So either it is not clear enough what "Output Size" is supposed to mean
or it is not working as expected.

The "Iframe" method also worked (no distorted image).

Regards,
Rolf

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to