On Sat, Jun 9, 2012 at 10:37 AM, Rzepa Henry <[email protected]> wrote:

>
> On 9 Jun 2012, at 16:03, Robert Hanson wrote:
>
>
> I have been asked by a publisher with whom  I am discussing replacing
> static images with  HTML5/WebGL instances, to ensure that the minimal
> behaviour always defaults to the replaced image (= the  Acrobat version of
> an article).   I wonder if it might be possible to define an array of such
> images (say Figures 1-10)  which the  Jmol scripts can cascade down to if
> for whatever reason the active scripts are not possible.
>

Are you saying you would like to have a single file that contains all
figures? I'm not sure of the benefit there. I would think a publisher would
want ten independent files -- figure1.png, figure2.png, etc. Why the
interest in an array?

What does "cascade down to" mean in this context?

There is no HTML5/WebGL alternative for Jmol scripts. If you want, you can
package your script/image in PNGJ or JPG format, then either deliver the
image or the Jmol applet -- that's almost trivial -- but not "image only or
HTML5/WebGL only". So not even considering an array, that's not possible at
this point in time and probably never will be, unless the Jmol scripts are
extremely simple.

Actually, we should probably start referring to two things -- WebGL and
HTML5 -- because really those are two different options. For example, the
iPhone and android tablet can load the HTML5 version of a model but not the
WebGL version.

A good modification of JmolApplet.js would  be to make it so that if the
option "Jmol or image" is given and the script is as simple as "script
xxxx" or "load xxxx" and 'xxxx' is a PNG or PNGJ or JPG file, then we
automatically show the image. That would certainly be easy to set up.
Implementing that now....



>
> I know that a  JPG can be generated server side to insert such an image,
> but  a "pre-generated" array of images would  be useful if the server-side
> generation were not to be available (ie the same images that have been used
> in the static  Acrobat version).
>
>
Q: Would  these images be created by Jmol or some other application?

Bob

>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to