From 8d64e1efd7183859d90490d3972dabd3e074b5a5 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 19 Dec 2023 18:11:47 +0000 Subject: [PATCH] DeviceGray lossless-to-jpeg now working --- cpdfimage.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdfimage.ml b/cpdfimage.ml index 5021a37..151b0ae 100644 --- a/cpdfimage.ml +++ b/cpdfimage.ml @@ -29,7 +29,7 @@ let pnm_to_channel_24 ch w h s = let pnm_to_channel_8 ch w h s = pnm_output_string ch "P5"; pnm_header ch w h; - pnm_output_string ch "15"; + pnm_output_string ch "255"; pnm_newline ch; let pos = ref 0 in for y = 1 to h do