Beginning JBIG2Lossy work

This commit is contained in:
John Whitington 2024-01-10 17:48:53 +00:00
parent bc297f27fc
commit 4b4b6f92bf
1 changed files with 4 additions and 0 deletions

View File

@ -711,6 +711,10 @@ let recompress_1bpp_jbig2_lossless ~pixel_threshold ~length_threshold ~path_to_j
end
let preprocess_jbig2_lossy ~path_to_jbig2enc inrange highdpi pdf = ()
(* Write out each stream as a *.pnm, if we choose to process it, restoring if not. *)
(* Call jbig2 to generate one *.jbig2 for each, and a *.jbig2globals *)
(* Build the JBIG2Globals stream for the file *)
(* For each file, read in the new JBIG2 data, and build each new image stream to replace the old one *)
let process
?q ?qlossless ?onebppmethod ~length_threshold ~percentage_threshold ~pixel_threshold ~dpi_threshold