Javascript Canvas 中的深度缩放集合
我需要在 HTML5 Canvas 元素中创建一个深度缩放马赛克,其中包含数千个大约 512x512 的图像,但我想尽可能少地重新发明轮子。
因此,我宁愿制作大量深度缩放图像并创建深度缩放集合,而不是将大量大图像组合成一个,然后创建深度缩放图像,但 Seadragon 不支持 DZC 格式。
在我看来,我还有其他三个选项,从头
- 开始,创建一个处理加载 DZC 文件的查看器,
- 扩展 Seadragon 以允许它处理 DZC 文件,
- 创建某种方法来解析 DCZ 文件,处理其相关图像,然后将其打开。 的
我希望我能在这里得到一些建议,也许是在 Deep Zoom 方面有更多经验的人的意见,以及它用来推荐的 XML 格式,考虑到我有一个严格的要求,这将是最简单和最好 最后期限。
任何建议都会很棒。谢谢!
I need to create a deep zoom mosaic in an HTML5 Canvas Element with thousands of roughly 512x512 images, but I want to reinvent the wheel as little as possible.
So rather than combining tons and tons of large images into one then creating a Deep Zoom Image, I'd rather make a load of deep zoom images and create a Deep Zoom Collection, but Seadragon doesn't support the DZC format.
The way I see it I have three other options, which are
- Start from scratch, create a viewer which deals with loading DZC files
- Extend Seadragon to allow it to handle DZC files
- Create some way to parse the DCZ file, process it's relevant images and turn it into a huge DZI file
I was hoping I could get a bit of advice here, maybe a sounding board from someone with more experience in Deep Zoom and the XML format it uses to recommend which would be the easiest and best considering I have a tight deadline.
Any advice would be awesome. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 HTML5 canvas 元素有什么具体原因吗?如果您只是想要不需要任何额外插件的东西,为什么不使用 CanvasZoom
Is there a specific reason for using HTML5 canvas element? If you just want something that works without any extra plugin's why not use CanvasZoom