mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 07:57:52 +03:00
Launch 32bit version of ghostscript on Windows
This commit is contained in:
parent
c58cd4e7ca
commit
ca3e9ab752
@ -24,7 +24,7 @@ MAGIC_NUMBER = b'\x89\x50\x4e\x47\x0d\x0a\x1a\x0a'
|
||||
|
||||
def document_write_png(self, target=None, resolution=96, antialiasing=1):
|
||||
pdf = self.write_pdf()
|
||||
gs = 'gswin64c' if os.name == 'nt' else 'gs'
|
||||
gs = 'gswin32c' if os.name == 'nt' else 'gs'
|
||||
command = [
|
||||
gs, '-q', '-dNOPAUSE', '-dSAFER', f'-dTextAlphaBits={antialiasing}',
|
||||
f'-dGraphicsAlphaBits={antialiasing}', '-sDEVICE=png16m',
|
||||
|
Loading…
Reference in New Issue
Block a user