Skip to content

Commit 6a5ed1c

Browse files
committed
match compression and filter settings of rasterized grayscale images to the ones used for color images in (e)ps export when using xpdf distillation.
1 parent d204c64 commit 6a5ed1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
15981598
else: paper_option = "-sPAPERSIZE=%s" % ptype
15991599

16001600
command = 'ps2pdf -dAutoFilterColorImages=false \
1601+
-dAutoFilterGrayImages=false -sGrayImageFilter=FlateEncode \
16011602
-sColorImageFilter=FlateEncode %s "%s" "%s" > "%s"'% \
16021603
(paper_option, tmpfile, pdffile, outfile)
16031604
if sys.platform == 'win32': command = command.replace('=', '#')

0 commit comments

Comments
 (0)