sul-dlss / riiif

IIIF image server in ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default Image.info_service always returns empty strings for dimensions

dunn opened this issue · comments

Image.info_service is used when the region is not full. In my testing, it always returns "" as the width and height, instead of the actual dimensions. I'm not sure why this is happening; it may be Rails.cache overriding the image variable, but that's just a guess.

For my use at least, just removing the info_service code entirely restores the correct behavior: dunn@6253bfa

What are the use-cases for overriding that method? It seems risky, since #decode_region depends on it.

Your image service is set to return empty strings

Oh, that explains it. Why did you do that?

I can't recall, possibly because it wasn't indexed at that point.