ruven / iipmooviewer

IIPMooViewer is an advanced javascript HTML5 image viewer for streaming high resolution scientific images

Home Page:https://iipimage.sourceforge.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iiif mode: wrong tilesize for last image

renevoorburg opened this issue · comments

issue71

This issue occurs only in iiif-mode. Let say we have an image that is in the lowest resolution is, let say 800 pixels wide and 70 pixels heigh. This hight is less than the default tile height of 256 pixels (70 pixels). However, also the fourth image is requested to have size !256x256. This will result in a scaled image, higher than 70 pixels.

Image width should be 800 - 3x256 = 32, height should be 70. With iiif (!256,256) this 32x70 image wil be resized, which clearly is not desired.

perhaps this is the same issue as mentioned in #40

This should be fixed by 152213f