Skip to content

Check for JP2 Optimisation #26

Description

@fmcc

At present the check is_tile_optimised_jp2 just returns True if the file suffix is .jp2

def is_tile_optimised_jp2(filepath: Path) -> bool:
"""Determines if a file is a JPEG2000 and whether it is optimised.
TODO: check for optimisation rather than just based on extension.
"""
return filepath.suffix == ".jp2"

This could potentially be updated to check the actual file optimisation if required.

Originally posted by @donaldgray in #25 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions