Skip to content

Handle Multi-Image TIFFs in Workflow #23

@jarmoza

Description

@jarmoza

Multi-Image TIFF files currently break the downscaling part of our workflow for Eynollah line extraction. Multiple files are generated and this confuses the upscale amount calculating in compute_upscale_amount.py causing it to throw an assert over the lines.

 width = original_tif_image.width / downsized_jpg_image.width
    height = original_tif_image.height / downsized_jpg_image.height
    assert math.isclose(width, height, abs_tol=0.1), f"Upscale amount (width={width}, height={height}) is not the same in both dimensions"

A good example of this are images found in the book anon_R11260_wellcome_4_generalhistoryair1692.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions