tropy / tropy-plugin-iiif

Tropy plugin to import IIIF manifests
GNU Affero General Public License v3.0
14 stars 3 forks source link

Image viewer only loads thumbnails #1

Closed buccalon closed 2 years ago

buccalon commented 2 years ago

@inukshuk thanks for this plugin!

Should I expect a high-resolution image viewer at this point? As a suggestion, you might consider "dezoomifying" images for hd photo import.

Manifest: http://ddsnext.crl.edu/services/item/manifest/2053 Expectation: High resolution image viewer Results: Tropy only loads thumbnails

image
inukshuk commented 2 years ago

Currently the plugin should fetch the full image, but I might have misunderstood the way the image API is used here. In the manifest, the resource's id is:

http://images.crl.edu/loris/e5/cb/a5/f2/-a/6d/c-/44/02/-a/42/d-/c8/c5/84/a4/e1/02/000002.tiff/full/800,/0/default.jpg

Which I guess in this case is the image you would want to fetch, right?

But the plugin currently also checks the service section, which in this case links to:

http://ddsnext.crl.edu/services/image/246235

And the plugin therefore tries this URL first:

http://ddsnext.crl.edu/services/image/246235/full/full/0/default.jpg

However, here this redirects to:

http://images.crl.edu/loris/e5/cb/a5/f2/-a/6d/c-/44/02/-a/42/d-/c8/c5/84/a4/e1/02/000002.tiff/full/90,/0/default.jpg

It looks to me like this redirect is wrong?

buccalon commented 2 years ago

@inukshuk you're right, and this is a 2018 implementation in which they don't publicize the manifest link

I imported another manifest from BnF which worked fine: https://gallica.bnf.fr/iiif/ark:/12148/btv1b85530100/manifest.json

The only issue I had was that many pages had to be consolidated after importing

image

I clicked each warning icon individually, but I assume that "consolidate item" pile them up in the same process

image

I also tried to import two version 3.0 manifests I know were statically generated, but neither worked:

Using Tropy to annotate IIIF manifests will be a game-changer for research, thanks again for this!

inukshuk commented 2 years ago

We haven't implemented version 3.0 yet, partly because we had not seen any archives using it, I'll make a note of your links, thanks!

As for the consolidation, this is the expected behavior: when you import the manifest, Tropy does not immediately try and download all images at once, it just creates the respective records in the database. The images are later loaded on demand when you actually access them in the UI. Instead of clicking on the warning icons, you can quickly scroll all the way to the bottom in the item's photo panel -- this should make Tropy download all the photos which are not in the image cache yet in one go.