diff --git a/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ImageConverter.java b/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ImageConverter.java index 1f8ad0f3409..702621e5f84 100644 --- a/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ImageConverter.java +++ b/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ImageConverter.java @@ -74,7 +74,9 @@ class ImageConverter { * source image to convert */ ImageConverter(URI imageFileUri) { - source = uriToPath(imageFileUri); + // Add "[0]" to the path to make sure ImageMagick only uses the "main" image and ignores other, + // potential subfiles like embedded thumbnails. Especially relevant for TIFF files. + source = uriToPath(imageFileUri) + "[0]"; } /**