zimeon / iiif

IIIF Image API reference implementation and Python library
GNU General Public License v3.0
55 stars 15 forks source link

Smaller dimension images do not get tiled as expected #57

Open cjativa opened 1 year ago

cjativa commented 1 year ago

I am opening this issue to understand the limitations the iiif_static.py module has when it comes to generating tile output for smaller sized images.

I've attached an example image (it's just a small version of the Google Small Business logo) and I attempt to tile it with the command

python3 /usr/local/bin/iiif_static.py -d .<some_output_directory> -p <some_base_path> --max-image-pixels 1000000000 ./google.jpg 
--verbose

When I look at the generated tile output, I only see

- full
- info.json

image

and no other subsequent folders, like I would for the tile output for a larger dimension image. Meanwhile, here is the tile output for a larger dimension image

image

My question is Is there any error going on in the underlying tile process that I can attempt to check for, when an image is too small to be tiled? I have run the iiif_static.py module with the --verbose flag, but none of the output directly indicates that the image file is too small for tiling.

I'd like to catch such a scenario so that I can inform users that upload an image that the image is too small for tiling. Thank you!

Google Small Business google