Re: [Jmol-users] echo image questions

2015-06-12 Thread Robert Hanson
OK, a major rewrite of the image-loading method. http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.15_2015.06.12.zip Good luck, Frieda! On Thu, Jun 11, 2015 at 9:09 AM, Robert Hanson wrote: > > > On Thu, Jun 11, 2015 at 7:21 AM, Frieda Reichsman > wrote: > >> Transparent png now displays correct

Re: [Jmol-users] echo image questions

2015-06-11 Thread Robert Hanson
On Thu, Jun 11, 2015 at 7:21 AM, Frieda Reichsman wrote: > Transparent png now displays correctly (without a black background) thank > you! > If the png has a black background, the background remains. So I take it > J/Smol is no longer making first pixel’s color transparent - do I have that > rig

Re: [Jmol-users] echo image questions

2015-06-11 Thread Frieda Reichsman
Transparent png now displays correctly (without a black background) thank you! If the png has a black background, the background remains. So I take it J/Smol is no longer making first pixel’s color transparent - do I have that right? Also, the other bug remains in this version (jmol-14.2.14_201

Re: [Jmol-users] echo image questions

2015-06-10 Thread Robert Hanson
I had only tested *tranparent* PNGs, as it turns out. This is one of the very few issues with JavaScript that I had forgotten, that (a & a) != a in certain cases. Anyway, the various image types are working now, and I have released a new version on SourceForge -- see https://sourceforge.net/pro

Re: [Jmol-users] echo image questions

2015-06-10 Thread Frieda Reichsman
In fact the pngs are not displaying either in this new version. The old version I was using is 14.3.13_2015.03.16. > On Jun 10, 2015, at 5:18 PM, Frieda Reichsman > wrote: > > Hi Bob, > > In this version, the jpg images I was using for the echo images are no longer >

Re: [Jmol-users] echo image questions

2015-06-10 Thread Robert Hanson
must say, I only tested PNG. On Wed, Jun 10, 2015 at 4:18 PM, Frieda Reichsman wrote: > Hi Bob, > > In this version, the jpg images I was using for the echo images are no > longer displayed. I haven’t checked png fixes yet-- thought you’d want to > know about the jpgs in any case. > > Frieda > >

Re: [Jmol-users] echo image questions

2015-06-10 Thread Frieda Reichsman
Hi Bob, In this version, the jpg images I was using for the echo images are no longer displayed. I haven’t checked png fixes yet-- thought you’d want to know about the jpgs in any case. Frieda > On Jun 10, 2015, at 8:11 AM, Robert Hanson wrote: > > yes, sorry -- I just realized that it was

Re: [Jmol-users] echo image questions

2015-06-10 Thread Robert Hanson
yes, sorry -- I just realized that it was only transparent over the background, not the model. see http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.14_2015.06.10c.zip removing jmol-14.3.14_2015.06.10.zip On Wed, Jun 10, 2015 at 4:53 AM, Angel Herráez wrote: > Thanks, Bob > > I've tested and sti

Re: [Jmol-users] echo image questions

2015-06-10 Thread Angel Herráez
Thanks, Bob I've tested and still only the last image is displayed in JSmol/HTML5 (both display in the Java applet) My script: background white; set echo ~test1 100% 100%; set echo ~test1 image "img1.gif"; // a plain gif set echo ~test1 depth 0; set echo ~test2 0% 0%; set echo ~test2 image "im

Re: [Jmol-users] echo image questions

2015-06-09 Thread Robert Hanson
It's fixed. Thanks for pointing this out, Frieda. See http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.14_2015.06.10.zip Jmol.___JmolVersion="14.3.14_2015.06.10" bug fix: animation buttons go to wrong first frame for FRAME [3 2 1] bug fix: JSmol set echo IMAGE not working properly (Frieda Reichsm

Re: [Jmol-users] echo image questions

2015-06-09 Thread Frieda Reichsman
Oh - I see now that you said that the applet worked with depth 0, not JSmol/HTML5. Sorry for the confusion; I have now confirmed your confirmation that “set echo depth 0" does not address the black background problem in JSmol. ;-) > On Jun 9, 2015, at 2:21 PM, Frieda Reichsman wrote: > > An

Re: [Jmol-users] echo image questions

2015-06-09 Thread Frieda Reichsman
Angel, thanks for your response! And for confirming these reports. I hope you are well. Unfortunately, the trick you suggest below (setting the echo depth to zero) does not clear the black background for me - not sure why it would work in one circumstance (yours :) and not another. > On Jun

Re: [Jmol-users] echo image questions

2015-06-08 Thread Robert Hanson
I doubt it is a restriction in terms of HTML5. I suspect it is a problem with the way the image is transferred. Looks like enough for me to test. I'll try to look at it tonight.​ -- _

Re: [Jmol-users] echo image questions

2015-06-08 Thread Angel Herráez
I've tested with a local page: - Java applet behaves as the app, both images may be displayed as echoes and the apparent transparency of png is preserved if using depth )as described in my previous message) - the same commands for the html5 JSmol fail as Frieda described: only the latest imag

Re: [Jmol-users] echo image questions

2015-06-08 Thread Robert Hanson
(read that wrong - thought it was about the image command) I will look into why that is happening. On Mon, Jun 8, 2015 at 1:35 PM, Robert Hanson wrote: > This is supposed to be the same in the app and applet. Just make sure you > also give two distinct IDs. > > image ID i1 . > image ID

Re: [Jmol-users] echo image questions

2015-06-08 Thread Robert Hanson
This is supposed to be the same in the app and applet. Just make sure you also give two distinct IDs. image ID i1 . image ID i2 or the second will simply take the place of the first. ​ -- __

Re: [Jmol-users] echo image questions

2015-06-08 Thread Angel Herráez
Dear Frieda, How are you? Good to hear from you! I've been in the same situation regarding black backgrounds, although I don't recall now for sure how I solved it or went around it. Testing in the app (v.14.3.12), I confirm that PNG files with transparent bkg do not enjoy real transparency, but

[Jmol-users] echo image questions

2015-06-08 Thread Frieda Reichsman
Hi Jmolers, Two questions about images. 1). I would like to place 2 or 3 images into a JSmol, and I find that I can do that in the app, but not in JSmol, where only one appears at a time. That is, when I call for a second image with an echo command, the first image is not displayed, only the s