From de56377d23b6e32229bee0acd52bdde58d41c20a Mon Sep 17 00:00:00 2001 From: John Whitington Date: Wed, 6 Nov 2024 20:13:57 +0000 Subject: [PATCH] Warning --- cpdfimage.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpdfimage.ml b/cpdfimage.ml index 7f9b89a..b2ebbe1 100644 --- a/cpdfimage.ml +++ b/cpdfimage.ml @@ -801,7 +801,7 @@ let lossless_resample_target_dpi objnum pdf ~pixel_threshold ~length_threshold ~ else if !debug_image_processing then Printf.printf "failed to meet dpi target\n%!" with - Not_found -> () (* Could not find DPI data - an orphan image. *) + Not_found -> Printf.eprintf "Warning: orphaned image, skipping\n" (* Could not find DPI data - an orphan image. *) let jpeg_to_jpeg_wrapper objnum pdf ~target_dpi_info ~pixel_threshold ~length_threshold ~percentage_threshold ~jpeg_to_jpeg_scale ~jpeg_to_jpeg_dpi ~interpolate ~q ~path_to_convert s dict reference = if jpeg_to_jpeg_dpi = 0. then @@ -815,7 +815,7 @@ let jpeg_to_jpeg_wrapper objnum pdf ~target_dpi_info ~pixel_threshold ~length_th else if !debug_image_processing then Printf.printf "failed to meet dpi target\n%!" with - Not_found -> () (* Could not find DPI data - an orphan image. *) + Not_found -> Printf.eprintf "Warning: orphaned image, skipping\n" (* Could not find DPI data - an orphan image. *) let recompress_1bpp_jbig2_lossless ~pixel_threshold ~length_threshold ~path_to_jbig2enc pdf s dict reference = complain_jbig2enc path_to_jbig2enc;