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.
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.