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 <hans...@stolaf.edu> wrote:

>
>
> On Thu, Jun 11, 2015 at 7:21 AM, Frieda Reichsman <frieda...@mac.com>
> 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
>> right?
>>
>>
> correct. It has to be a proper transparent JPG, PNG, or GIF image. HTML5
> handles all the transparency in its Canvas element; JSmol just reads the
> array of color values and pushes that to the Jmol window directly. So if
> the image has transparency, it will be there in JSmol.
>
>
>
>>
>> Also, the other bug remains in this version (jmol-14.2.14_2015.06.11).
>> That is, only the last image that I call via echo is displayed, and
>> previous images are not displayed. jpg’s are again displaying (but only if
>> they are echoed last).
>>
>
> Ouch! I was certain I had fixed that.
>
>
>>
>> Thanks,
>> Frieda
>>
>>
>> On Jun 11, 2015, at 1:29 AM, Robert Hanson <hans...@stolaf.edu> wrote:
>>
>> 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/projects/jmol/files/Jmol/Version%2014.2/Version%2014.2.14/
>>
>>
>> http://sourceforge.net/projects/jmol/files/Jmol/Version%2014.2/Version%2014.2.14/Jmol-14.2.14_2015.06.11-binary.zip/download
>>
>>
>>
>>
>> --
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> Chair, Department of Chemistry
>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Department of Chemistry
> 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
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
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to