glenrobson / iiif-tiler

Java based static IIIF tile generator
Apache License 2.0
21 stars 0 forks source link

Image processing issue #17

Closed glenrobson closed 3 years ago

glenrobson commented 3 years ago

Martim found:

9917e57fffe7 - iiify - Processing: 001AAN005147
Zoom level 5
Exception in thread "main" java.lang.RuntimeException: Error doing rescale. Target size was 256x1 but must be at least 3x3.

Image: https://imaginerio-images.s3.us-east-1.amazonaws.com/iiif/001AAN005147/full/max/0/default.jpg

From container. Container commands:

docker build -t etl .
docker run etl dagster pipeline execute -f pipelines/iiif_pipeline.py --preset test

Python wrapper:

https://github.com/imaginerio/situated-views-etl/blob/2abf0665955a6486b2067fb49aa899f4b26b46b0/src/solids/iiif.py#L454

martimpassos commented 3 years ago

Ok I think I know what's up: it is probably breaking on cases such as this: image

glenrobson commented 3 years ago

iiif-tiler fix issues

glenrobson commented 3 years ago

Seems to be related to this: https://github.com/martinheidegger/java-image-scaling/blob/964dda2181e20c0afc655a9f3937fbe44bd43dea/src/main/java/com/mortennobel/imagescaling/ResampleOp.java#L181