Open smith2228 opened 9 months ago
I can confirm this site has been working fine for me since forever... but for the last 2 months(ish) it's been consistently failing - I haven't been able to download any images. Another failing example: https://ndhadeliver.natlib.govt.nz/delivery/DeliveryManagerServlet?dps_pid=IE3482538&dps_custom_att_1=emu
Dezoomify traps this file:
https://ndhadeliver.natlib.govt.nz/iipsrv?FIF=2013/05/09/ac_21/V1-FL17024838.jp2
Which it classifies as an IIPImage, but comes up with 'Oops, we have a problem', and the following error:
Uncaught Error: Invalid IIPImage information file.
(https://dezoomify.ophir.dev/dezoomers/iipimage.js:40)
Here are the contents of the file you reference:
Content-Disposition: inline;filename="IIPisAMadGameClosedToOurUnderstanding.netfpx"
Error/42:2 1 FIF=2013/05/09/ac_
Looks like they started using incapsula to try and prevent bots to access the resources. It should be possible to work around it with https://github.com/lovasoa/dezoomify/wiki/How-to-access-protected-pages
Just got it to work by using dezoomify-rs and copying the cookie from my browser session :
❯ ./dezoomify-rs 'https://ndhadeliver.natlib.govt.nz/iipsrv?FIF=2013/05/09/ac_21/V1-FL17024838.jp2&obj=IIP,1.0&obj=Max-size&obj=Tile-size&obj=Resolution-number' --header 'Cookie: incap_ses_2224_227072=WCzGUfAbhw0BZ2oyPDzdHsIS02UAAAAAmtHdBpAw2kcbTquGguLgQA==;'
Found the following zoom levels:
0. IIPImage ( 97 x 134 pixels, 1 tiles)
1. IIPImage ( 195 x 268 pixels, 2 tiles)
2. IIPImage ( 390 x 537 pixels, 6 tiles)
3. IIPImage ( 780 x 1075 pixels, 20 tiles)
4. IIPImage ( 1560 x 2151 pixels, 63 tiles)
5. IIPImage ( 3120 x 4302 pixels, 221 tiles)
Which level do you want to download?
5
[ETA:0s] ######################################## 221/221 Finished tile download
Image successfully saved to '/home/olojkine/dev/dezoomify-rs/dezoomified.jpg' (current working directory: /home/olojkine/dev/dezoomify-rs)
I'm having similar issues with https://ndhadeliver.natlib.govt.nz/delivery/DeliveryManagerServlet?dps_pid=IE820472&dps_custom_att_1=emu - Dezoomify Chrome plugin gives me https://ndhadeliver.natlib.govt.nz/iipsrv?FIF=2021/07/24/ac_140/V1-FL73864973.jp2 but also comes up with the same error messages.
Any assistance would be much appreciated
You should be able to do the same as I did above, with dezoomify-rs
I was having the same issue, and tried adding the cookie header and it worked for me. Thanks @lovasoa
https://ndhadeliver.natlib.govt.nz The National Library of New Zealand website has stopped working. It has been functional with dezoomify for multiple months until recently.
It uses IIPImage: https://ndhadeliver.natlib.govt.nz/delivery/DeliveryManagerServlet?dps_pid=IE6457324&dps_custom_att_1=emu I grab the actual image using the browser extension, giving me: https://ndhadeliver.natlib.govt.nz/iipsrv?FIF=2013/04/19/ac_3/V1-FL16627598.jp2
On the website, it returns:
In dezoomify-rs, I get:
It worked for an image a few days ago very briefly in-between fail after fail, so I'm not sure what might be causing this. Any one else having problems with IIPimage recently, or might it be a change to this particular website?