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)
At present the check
is_tile_optimised_jp2just returnsTrueif the file suffix is.jp2appetiser/appetiser/convert/image.py
Lines 20 to 24 in 7d0c43c
This could potentially be updated to check the actual file optimisation if required.
Originally posted by @donaldgray in #25 (comment)