An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.
Go to file
Craig A. Berry bff93af17e Handle XML embedded in tilesource JSON
The existing check for whether the tilesource data is XML or JSON
looks for a tag anywhere in the response content, which incorrectly
flags the content as XML in the case where it is really JSON with
XML embedded in it.

This commit corrects that problem by requiring the tag to occur as
the first non-whitespace part of the content. This is basically a
poor person's well-formedness check since well-formed XML cannot
have non-whitespace content outside of the root node.

N.B. While malformed XML content with non-whitespace characters
before the first element has been getting identified as XML, it
has not been getting parsed correctly.  With current parsing
infrastructure, the content has been getting replaced by a parsing
error message.  With more up-to-date parsing infrastructure, it
will throw an error.  Either way we're not losing anything by failing
to identify malformed XML as XML.

Addresses issue #2325.
2023-03-30 16:38:35 -05:00
.github Update FUNDING.yml 2021-05-11 20:58:53 -07:00
.vscode Visual Studio Code tasks.json update to version 2.0.0 2021-05-06 11:53:48 -07:00
images Changes back showFlipControl and showNavigator variables to false default state 2018-04-09 15:06:29 +01:00
nbproject Fix formatting on netbeans. 2015-11-26 17:24:37 -05:00
psd Add psd with button source 2017-02-20 20:41:14 +01:00
src Handle XML embedded in tilesource JSON 2023-03-30 16:38:35 -05:00
test Handle XML embedded in tilesource JSON 2023-03-30 16:38:35 -05:00
.editorconfig Fix editorconfig config. 2015-06-11 10:49:32 -04:00
.eslintrc.hound.json Update globals in .eslintrc files 2021-07-02 07:33:55 -05:00
.eslintrc.json Update globals in .eslintrc files 2021-07-02 07:33:55 -05:00
.gitignore .DS_Store banished! 2022-11-15 17:50:56 -05:00
.hound.yml Remove jshint 2017-01-16 21:44:36 +01:00
.travis.yml Try an even newer build env 2023-02-28 21:16:41 +01:00
changelog.txt Change log for #2317 2023-03-16 13:26:59 -07:00
CONTRIBUTING.md fix: links 2022-10-01 13:04:28 +05:30
Gruntfile.js Fix after NPM package update 2021-12-17 15:03:56 -08:00
LICENSE.txt Updated copyright to 2022 2022-06-08 15:02:29 -07:00
openseadragon.sublime-project Coordinate conversion functions for TiledImage 2014-11-21 16:32:04 -08:00
package-lock.json update npm packages 2023-02-15 19:15:22 +05:30
package.json update npm packages 2023-02-15 19:15:22 +05:30
README.md Remove Gitter and Build tags 2022-10-05 11:45:52 +05:30

OpenSeadragon

An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.

See it in action and get started using it at https://openseadragon.github.io/.

Stable Builds

See the GitHub releases page.

Development

If you want to use OpenSeadragon in your own projects, you can find the latest stable build, API documentation, and example code at https://openseadragon.github.io/. If you want to modify OpenSeadragon and/or contribute to its development, read the contributing guide for instructions.

License

OpenSeadragon is released under the New BSD license. For details, see the LICENSE.txt file.