Skip to content

Commit

Permalink
fixed iiif thumbnail conversion false
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Oct 6, 2023
1 parent 1e48fc8 commit 2d88912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openatlas/display/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ def profile_image(entity: Entity) -> str:
style = f'max-width:{g.settings["profile_image_width"]}px;'
if app.config['IIIF']['activate'] and check_iiif_file_exist(entity.id):
style = f'max-width:200px;'
ext = '.tiff' if app.config['IIIF']['conversion'] \
else g.files[entity.id].suffix
src = \
(f"{app.config['IIIF']['url']}{entity.id}.tiff"
(f"{app.config['IIIF']['url']}{entity.id}{ext}"
f"/full/!200,200/0/default.jpg")
ext = app.config["ALLOWED_IMAGE_EXT"]
elif g.settings['image_processing'] and check_processed_image(path.name):
Expand Down

0 comments on commit 2d88912

Please sign in to comment.