lovasoa / dezoomify

Dezoomify is a web application to download zoomable images from museum websites, image galleries, and map viewers. Many different zoomable image technologies are supported.
https://dezoomify.ophir.dev
GNU General Public License v2.0
658 stars 71 forks source link

Non-scrolling tiles on Aware ImageServer (digitool.is.cuni.cz) #412

Open ozarugit opened 4 years ago

ozarugit commented 4 years ago

I've seen https://github.com/lovasoa/dezoomify/issues/157 where @psinacio requested help for http://digitool.is.cuni.cz (an Aware JPEG2000 ImageServer), and @incte8 solved it by providing a single download URL, with the answer "doesn't need dezoomify". So, if it's not a DeZoomify issue, apologies if I shouldn't be asking this, but...

Can someone offer guidance on how you produce that 'single download URL' from the URL of the root page(s) with tiled images (or URLs of 2-3 sample tiles)? The tiles are not smoothly scrollable (instead rather 'click to jump right/left/up/down') and their URLs & sizes, even the zoom level seem to be generated on the fly (based on screen port width, session ID, etc.).

As an example, a specific image I've looked at is http://digitool.is.cuni.cz:1801/webclient/DeliveryManager?pid=1116965 which forwards to http://digitool.is.cuni.cz:1801/view/action/nmets.do?DOCCHOICE=1116965.xml&dvs=1593160819771~194&locale=en_US&search_terms=&adjacency=&VIEWER_URL=/view/action/nmets.do?&DELIVERY_RULE_ID=3&divType= (but the dvs parameter changes over time and times out). The individual tile URLs seem to follow the pattern below (where I've used # as a placeholder to stand for numbers that keep changing):

http://digitool.is.cuni.cz:#/ImageServer/imageserver?&res=#&viewwidth=#&viewheight=#&x=#&y=#&imgClickX=#&imgClickY=#&rotation=0&requestId=#&filename=L2V4bGlicmlzL2R0bC9zdG9yYWdlX21hcC8yMDEzLzA3LzIyL3ZpZXdfMS8xMTE2OTY3&imageActionSelect=&display_plugin=false&usePid2=true&thumbnailActionSelect=&collectionName=&usePid1=true

Any ideas/hints? TIA

lovasoa commented 4 years ago

Hello and thank you for the report. I'm labelling it as "new site support".

lovasoa commented 4 years ago

Here are the steps to follow:

ozarugit commented 4 years ago

Thanks @lovasoa - this works (or at least in Firefox - not in Maxthon, haven't tried other browsers).

In fact, the viewheight is not crucial (i.e., even if it is excessively high, no error is produced), but for viewwidth there seems no option than to iterate, e.g. for the example above, 500 (default) - 3500 (error "the image cannot be displayed, because it contains errors") - 2000 (OK but incomplete) - 3000 (error) - 2500 (incomplete) - 2750 (incomplete) - 2870 (incomplete) - 2930 (error) - 2900 (OK, looks nearly complete but just in case...) - 2915 (error) - 2910 (complete, confirmed). It also takes a while to step through the HTML in the Network Monitor to find the right place. (OK, now I know it's marked by <img type="image" style="display: inline;" name="imageDis" id="imageDis" title="Zoom In Disabled" alt="Zoom In Disabled" src="imageserver?...> it may be easier to search for this next time.)

So... any chance DeZoomify will automate this process in the future?