Skip to content

Commit

Permalink
Fix blurry derivatives caused by using wrong subfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Mar 14, 2024
1 parent 023d949 commit dea854b
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 dea854b

Please sign in to comment.