dezoomify icon indicating copy to clipboard operation
dezoomify copied to clipboard

When trying to process a JSTOR JSON file from a URL via dezoomify, an error "Uncaught Error: Invalid JSON" is thrown. The JSON file is confirmed to be valid using JSONLint.

Open zhaobf opened this issue 2 years ago • 2 comments

Please open a bug report ONLY if the issue you are facing is not specific to a particular site. If you have an issue with a site in particular and would like dezoomify to add support for it, then please open a new site support issue instead.

Describe the bug Use the following URL to download an image using dezoomify: https://www.jstor.org/iiif/2016/05/14/23/88c61801-f584-4aa8-bb62-b16bb8f456f9_deflate.tif/info.json The error "Uncaught Error: Invalid JSON" is encountered.

Uncaught Error: Invalid JSON: https://www.jstor.org/iiif/2016/05/14/23/88c61801-f584-4aa8-bb62-b16bb8f456f9_deflate.tif/info.json

(https://dezoomify.ophir.dev/zoommanager.js:217)

To Reproduce Steps to reproduce the behavior. Include an URL to a zoomable image viewer page AND the URL you are giving to dezoomify. origin url: https://www.jstor.org/stable/community.14494152?searchText=Paul+Cezanne&searchUri=%2Faction%2FdoBasicSearch%3FQuery%3DPaul%2BCezanne%26efqs%3DeyJjdHkiOlsiWTI5dWRISnBZblYwWldSZmFXMWhaMlZ6Il0sImNvbGxlY3Rpb25faWRzIjpbIk1UQXdNVFF4TXpJMyJdfQ%253D%253D%26image_search_referrer%3Dglobal&ab_segments=0%2Fbasic_search_gsv2%2Fcontrol&refreqid=fastly-default%3Aa516e2eb7668c6ea94f3337b6173be9d&searchkey=1685786031197

IIIF url: https://www.jstor.org/iiif/2016/05/14/23/88c61801-f584-4aa8-bb62-b16bb8f456f9_deflate.tif/info.json

Expected behavior Expected dezoomify to process the JSON file and download the associated image without errors.

Screenshots Not applicable.

Browser:

  • Google Chrome
  • Version 115.0.5790.13 (Official Build) beta (x86_64)

Additional context The JSON file from the provided URL is confirmed to be valid using JSONLint, suggesting the issue is likely related to how dezoomify processes the JSON file. This issue was encountered on line 217 of zoommanager.js (https://dezoomify.ophir.dev/zoommanager.js:217).

zhaobf avatar Jun 03 '23 12:06 zhaobf

1

DigitalCurator avatar Jun 04 '23 14:06 DigitalCurator

1

Hello, could you tell me how you obtained this image? Was it directly downloaded via this link? https://dezoomify.ophir.dev/#https://www.jstor.org/iiif/2016/05/14/23/88c61801-f584-4aa8-bb62-b16bb8f456f9_deflate.tif/info.json

zhaobf avatar Jun 04 '23 17:06 zhaobf