Modify

Opened 9 years ago

Closed 7 years ago

#2564 closed defect (fixed)

[Patch] Fix use_gs for ghostscript >= 8.15.2

Reported by: mkent Owned by: Noah Kantrowitz
Priority: normal Component: MasterTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Trying out the use_gs option I had to make a slight adjustment to the options passed to ghostscript, seems they removed -o at some point.

This is using the version of ghostscript that ships with CentOS 5.1. Exact version is 'ESP Ghostscript 8.15.2 (2006-04-19)'

--- 0.11/mastertickets/web_ui.py.orig   2008-01-28 10:23:08.000000000 -0800
+++ 0.11/mastertickets/web_ui.py        2008-02-13 09:20:59.000000000 -0800
@@ -117,7 +117,7 @@

             if self.use_gs:
                 ps = g.render(self.dot_path, 'ps2')
-                gs = subprocess.Popen([self.gs_path, '-q', '-dTextAlphaBits=4', '-dGraphicsAlphaBits=4', '-sDEVICE=png16m', '-o', '%stdout%', '-'],
+                gs = subprocess.Popen([self.gs_path, '-q', '-dTextAlphaBits=4', '-dGraphicsAlphaBits=4', '-sDEVICE=png16m', '-sOutputFile=%stdout%', '-'],
                                       stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                 img, err = gs.communicate(ps)
                 if err:

work great now.

Attachments (1)

Backburner_libs30 (546 bytes) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by anonymous

Attachment: Backburner_libs30 added

comment:1 Changed 8 years ago by Ryan J Ollos

Summary: fix use_gs for ghostscript >= 8.15.2[Patch] Fix use_gs for ghostscript >= 8.15.2

comment:2 Changed 7 years ago by Noah Kantrowitz

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.