mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Expand image formats for viewing in OpenSeadragon
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
<data_sources>
|
||||
<data_source>
|
||||
<model_class>HistoryDatasetAssociation</model_class>
|
||||
<test type="isinstance" test_attr="datatype" result_type="datatype">images.Gif</test>
|
||||
<test type="isinstance" test_attr="datatype" result_type="datatype">images.Jpg</test>
|
||||
<test type="isinstance" test_attr="datatype" result_type="datatype">images.Png</test>
|
||||
<test type="isinstance" test_attr="datatype" result_type="datatype">images.Tiff</test>
|
||||
<test type="isinstance" test_attr="datatype" result_type="datatype">xml.Dzi</test>
|
||||
<to_param param_attr="id">dataset_id</to_param>
|
||||
</data_source>
|
||||
|
||||
@@ -29,8 +29,9 @@
|
||||
const prefixUrl = "//openseadragon.github.io/openseadragon/images/";
|
||||
const simple_image_url = "${h.url_for(controller='/datasets', action='index')}/" + hda_id + "/display";
|
||||
const xmlns = "http://schemas.microsoft.com/deepzoom/2008";
|
||||
const image_types = ["gif", "jpg", "png", "tiff"];
|
||||
|
||||
if (hda_ext == 'jpg' || hda_ext == 'png') {
|
||||
if (image_types.indexOf(hda_ext) >= 0) {
|
||||
var viewer = OpenSeadragon({
|
||||
id: viewer_id,
|
||||
prefixUrl: prefixUrl,
|
||||
|
||||
Reference in New Issue
Block a user