Javascript OpenSeaDragon未在dzc_output.xml文件中显示多个图像

Javascript OpenSeaDragon未在dzc_output.xml文件中显示多个图像,javascript,xml,deepzoom,openseadragon,Javascript,Xml,Deepzoom,Openseadragon,我正在尝试用OpenSeaDragon显示多个图像。我使用Deep Zoom Composer创建图像文件,它生成了以下XML文件(节略): dzc_output.xml: <?xml version="1.0" encoding="utf-8"?> <Collection MaxLevel="8" TileSize="256" Format="jpg" NextItemId="5" ServerFormat="Default" xmlns="http://schemas.mi

我正在尝试用OpenSeaDragon显示多个图像。我使用Deep Zoom Composer创建图像文件,它生成了以下XML文件(节略):

dzc_output.xml:

<?xml version="1.0" encoding="utf-8"?>
<Collection MaxLevel="8" TileSize="256" Format="jpg" NextItemId="5" ServerFormat="Default" xmlns="http://schemas.microsoft.com/deepzoom/2009">
  <Items>
    <I Id="0" N="0" Source="dzc_output_images/ft1.xml">
      <Size Width="825" Height="584" />
      <Viewport Width="5.2402050398801272" X="-0" Y="-0" />
    </I>
    <I Id="1" N="1" Source="dzc_output_images/ft2.xml">
      <Size Width="824" Height="583" />
      <Viewport Width="5.2375806686733934" X="-1.0500455705877254" Y="-0" />
    </I>
    <!--3 more images not shown as not necessary-->
  </Items>
</Collection>
我正在使用
python-mhttp.server
为html页面所在的文件夹提供服务。它适用于单个图像。但是,由于此dzc_output.xml文件包含多个图像,当我加载页面时,查看器显示“无法打开[object object]:无法加载TileSource”。滚动图像会产生以下错误:“无法打开[object object]:HTTP 404试图加载TileSource”

我不确定这里有什么问题。任何帮助都是好的。

的确。。。这是一个“深度缩放集合”,它与OpenSeadragon支持的“深度缩放图像”格式不同。我们有一个问题需要支持DZCs:,但到目前为止还没有任何行动

此时,您有多种选择:

  • 将图像作为DZIs从Deep Zoom Composer导出
  • 编写一个脚本,将DZC输出转换为一系列DZI,以便在OSD中使用
  • 帮助我们实现对OSD的DZC本地支持
现在我们有了真正的多映像,支持DZC应该不会太难。一个方面,如中所述,DZC还包括一个附加的平铺金字塔,带有图像的缩略图(有关更多信息,请参阅)。这是一个很好的优化(节省了网络流量),但我们可以先跳过它,只使用DZC作为DZI的目录

请注意,中也讨论了此问题

var viewer = OpenSeadragon({
                id: "openseadragon1",
                prefixUrl: "openseadragon/images/",
                tileSources: "imagesources/dzc_output.xml",
                sequenceMode: true
            });