http://bugs.ghostscript.com/show_bug.cgi?id=692960
Summary: mudraw -g -o foo.ppm foo.pdf fails to force grayscale
Product: MuPDF
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P4
Component: apps
AssignedTo: tor.andersson at artifex.com
ReportedBy: cloos at jhcloos.com
QAContact: gs-bugs at ghostscript.com
The code looks like:
colorspace = fz_device_rgb;
if (grayscale)
colorspace = fz_device_gray;
if (output && strstr(output, ".pgm"))
colorspace = fz_device_gray;
if (output && strstr(output, ".ppm"))
colorspace = fz_device_rgb;
if (output && strstr(output, ".pbm"))
colorspace = fz_device_gray;
The test for grayscale needs to be after the one for ".ppm".
Given that pbm also uses fz_device_gray (rather than a putative fz_device_k)
the grayscale test should be moved after (all of) the output filename tests.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.