This commit is contained in:
Laurenz Stampfl 2025-03-26 22:28:45 +01:00
parent 2e141dcf9b
commit 8d58e747c8
2 changed files with 7 additions and 3 deletions

View File

@ -188,7 +188,11 @@ fn convert_raster(
i
});
krilla::image::Image::from_jpeg_with_icc(image_data.into(), icc_profile.map(|i| i.into()), interpolate)
krilla::image::Image::from_jpeg_with_icc(
image_data.into(),
icc_profile.map(|i| i.into()),
interpolate,
)
} else {
krilla::image::Image::from_custom(PdfImage::new(raster), interpolate)
}