Skip to content

Inconsistency of height of tile images #72

@2SC1815J

Description

@2SC1815J

In some cases, you can get inconsistent scaled tile images.
Please see the right bottom corner of the captured images.

tileSize: default
http://mejackreed.github.io/Leaflet-IIIF/examples/?url=https://iiif.dl.itc.u-tokyo.ac.jp/repo/iiif-img/155256/info.json
tilesize_default

tileSize: 1024
https://rawgit.com/2SC1815J/ed53d45d04742a52ae782cad1ef399e1/raw/0e6fe38f2353af66b1063fd7254c84cef437b316/iiif-example.html
tilesize_1024
(Image courtesy of the University of Tokyo General Library - “Kunshujou”)

These are displaying https://iiif.dl.itc.u-tokyo.ac.jp/repo/iiif-img/155256/info.json (width: 8317, height: 5479).
Leaflet-IIIF will try to get, for example,
https://iiif.dl.itc.u-tokyo.ac.jp/repo/iiif-img/155256/0,0,8192,5479/1024,/0/default.jpg
https://iiif.dl.itc.u-tokyo.ac.jp/repo/iiif-img/155256/8192,0,125,5479/16,/0/default.jpg
The IIIF image server returns 1024 x 684 px and 16 x 701 px images, these heights differ.

If you set tileSize smaller, this issue will be solved, is there any other solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions