ulb-sachsen-anhalt / digital-derivans

Derive new digitals from existing ones
MIT License
6 stars 2 forks source link

[Bug] Prevent addition of JPG-Extension #22

Closed M3ssman closed 2 years ago

M3ssman commented 2 years ago

Description

Currently, if derivans goes for MAX-images and also uses available Metadata, i.e. METS-Filegroup information, it assumes to handle online resources only. So it just goes on, picks the last segment from the file URL and appends there a literally .jpg extension anyway.

But this doesn't hold for DMS-Exports from KITODO, where exportes resources already have a .tif extension (and are TIF-files anyway). Therefore, some workaround is required to handle this case properly.

M3ssman commented 2 years ago

done and test implemented