mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-01-18 19:59:57 +01:00
In lossless_to_jpeg, prevent imagemagick returning a different
colourspace
This commit is contained in:
parent
33d86a12ec
commit
87c6136f3e
@ -684,7 +684,7 @@ let lossless_to_jpeg pdf ~pixel_threshold ~length_threshold ~percentage_threshol
|
||||
(Filename.quote_command path_to_convert
|
||||
((if components = 4 then ["-depth"; "8"; "-size"; string_of_int w ^ "x" ^ string_of_int h] else []) @
|
||||
[out; "-quality"; string_of_float qlossless ^ "%"] @
|
||||
(if components = 1 then ["-colorspace"; "Gray"] else if components = 4 then ["-colorspace"; "CMYK"] else []) @
|
||||
(if components = 1 then ["-colorspace"; "Gray"] else if components = 4 then ["-colorspace"; "CMYK"] else ["-type"; "truecolor"]) @
|
||||
[out2]))
|
||||
in
|
||||
(*Printf.printf "%S\n" command;*) Sys.command command
|
||||
|
Loading…
Reference in New Issue
Block a user