Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0552724

Browse files
committed
Merge pull request #4208 from jaschau/master
FIX: compression of grayscale rasterized artists in (e)ps distilled with xpdf.
2 parents 2c4aa6d + 6a5ed1c commit 0552724

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
@@ -1581,6 +1581,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
15811581
else: paper_option = "-sPAPERSIZE=%s" % ptype
15821582

15831583
command = 'ps2pdf -dAutoFilterColorImages=false \
1584+
-dAutoFilterGrayImages=false -sGrayImageFilter=FlateEncode \
15841585
-sColorImageFilter=FlateEncode %s "%s" "%s" > "%s"'% \
15851586
(paper_option, tmpfile, pdffile, outfile)
15861587
if sys.platform == 'win32': command = command.replace('=', '#')

0 commit comments

Comments
 (0)