Plugin for Omeka that adds the IIIF specifications in order to act like an IIPImage server, and the UniversalViewer, a unified online player for any file. It can display books, images, maps, audio, movies, pdf, 3D views, and anything else as long as the appropriate extensions are installed.
Other
24
stars
20
forks
source link
Fix last cell tile level for pre-generated tiles #16
For images where the maxSize is exactly equal to a 2^n factor, the code was adding an extra level to the squaleFactors array. This caused the level for the last cell to be incorrectly one higher than it should have been.
Changing the line to read while ($factor / 2 < $total) fixes that calculation error in all cases.
This one I am more confident of.
For images where the maxSize is exactly equal to a 2^n factor, the code was adding an extra level to the squaleFactors array. This caused the level for the last cell to be incorrectly one higher than it should have been.
Changing the line to read
while ($factor / 2 < $total)
fixes that calculation error in all cases.