-
-
Notifications
You must be signed in to change notification settings - Fork 698
Missing edge tiles when viewing IIIF layout of dzsave in OpenSeadragon #1621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I agree, I tried against git master magick_tile and I see some differences. I tested like this:
I'll see if I can work out why they are different. |
We were clipping edge tiles against the size of the scaled up layer. Instead, clip against the size of the top level image. See #1621
I might have fixed it! Would you be able to test git master libvips? The change is on the head of the 8.9 branch as well. |
Wow! Thank you for the quick response. Sure thing, I'll test it right away. |
Confirmed! OpenSeadragon is now rendering everything as expected. Thanks again! |
Good stuff, this fix will be in 8.9.3. Thanks for the report! |
I'm processing an 11558 × 11081 pixel image with the following command:
However, I'm running into a problem where at smaller zooms, OpenSeadragon is attempting to request edge tiles that don't exist. Specifically, edge tiles at the right and bottom appear missing.
For example, here's a screenshot; I mocked up the part of the image that's missing in red:
To be clear, all the tiles were generated for all the zoom levels. It's just that the URLs for the edge tiles do not match what OpenSeadragon expects. I suspect that this is an issue with vips and not OSD because we targeted the same OSD viewer at a Cantaloupe server and at a set of tiles that have been pre-generated using
iiif-tile-seed
from go-iiif. In both cases, all of the tiles that OSD expects were there. We used the sameinfo.json
in all three tests.Here is OSD's current logic for generating IIIF tile URLS:
https://github.com/openseadragon/openseadragon/blob/519cbaccdec95339766485d21b1f34a6e2171252/src/iiiftilesource.js#L411-L430
In terms of vips version, I built it from source at the 93337f8 commit.
Could this be a rounding error? At the maximum zoom level, all of the tiles that OSD expects are there. I'm seeing a sort of sliding scale of errors, where at higher-but-not-max zoom levels, I begin to see tiles on the right edge as expected, but the tiles on the bottom remain missing. But as I zoom out further, the tiles on the right edge get lost, too.
I processed the same image with both vips and go-iiif, and diff'd the resulting folder structure. As mentioned above, go-iiif's output matches what OSD expects. Sorry if this is a bit long:
Related issues: #1465, go-iiif/go-iiif#20, maybe #1611 and #659?
Thank you for your time!
The text was updated successfully, but these errors were encountered: