Skip to content

Commit

Permalink
config: format IIIF valid extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed May 8, 2024
1 parent 752431e commit b3e38f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion invenio_rdm_records/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,16 @@ def lock_edit_published_files(service, identity, record=None):
IIIF_TILES_GENERATION_ENABLED = False
"""Enable generating pyramidal TIFF tiles for uploaded images."""

IIIF_TILES_VALID_EXTENSIONS = ["tiff", "pdf", "jpeg", "png"]
IIIF_TILES_VALID_EXTENSIONS = [
"jp2",
"jpeg",
"jpg",
"pdf", # We can still generate tiles for the first page of a PDF
"png",
"png",
"tif",
"tiff",
]
"""Valid (normalized) file extensions for generating tiles."""

IIIF_TILES_STORAGE_BASE_PATH = "images/"
Expand Down

0 comments on commit b3e38f4

Please sign in to comment.