Skip to content

Commit

Permalink
Fix blurry derivatives (SHLB)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Dec 20, 2023
1 parent 71e2e14 commit fd24e73
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]";
}

/**
Expand Down

0 comments on commit fd24e73

Please sign in to comment.