Re: [Image-SIG] pdf to image

2008-01-14 Thread Christopher Barker
OK, a bit (or a lot!), but once someone else brought it up--- Carl Karsten wrote: > # gs -sDEVICE=png16m -sOutputFile=x.png -dBATCH -dNOPAUSE badge.pdf I've used similar code. However, in my case, we're thumbnailing arbitrary pdfs, which could be any size -- usually they are US-letter or A

Re: [Image-SIG] pdf to image

2008-01-13 Thread Fredrik Lundh
Carl Karsten wrote: >>> > OSError: [Errno 10] No child processes >> >> does the "gs" command behave properly if you run it from the shell? > > Yes. > > It even behaves most of the time when run from subprocess.call(gs_command). could it be this bug? http://bugs.python.org/issue1731717

Re: [Image-SIG] pdf to image

2008-01-13 Thread Carl Karsten
Fredrik Lundh wrote: > Carl Karsten wrote: > >> close failed: [Errno 10] No child processes >> >> and stack dumps: >> >> > subprocess.call(gs_command) >> > >> > File "/usr/local/lib/python2.5/subprocess.py", line 443, in call >> > return Popen(*popenargs, **kwargs).wait() >> > >> >

Re: [Image-SIG] pdf to image

2008-01-12 Thread Fredrik Lundh
Carl Karsten wrote: > close failed: [Errno 10] No child processes > > and stack dumps: > > > subprocess.call(gs_command) > > > > File "/usr/local/lib/python2.5/subprocess.py", line 443, in call > > return Popen(*popenargs, **kwargs).wait() > > > > File "/usr/local/lib/python2.5

[Image-SIG] pdf to image

2008-01-12 Thread Carl Karsten
For the PyCon registration web page, we would like to display a preview of what the persons badge will look like based on what they have entered. (full name, nick name, extra lines in the fonts that will be used - helps make sure things will fit, etc.) The badge gets created as a pdf=mkpdf(dat

Re: [Image-SIG] PDF to Image conversion

2005-06-09 Thread kevin
http://www.gnu.org/software/ghostscript/ghostscript.html Kevin - Original Message - From: "Franz Struwig" <[EMAIL PROTECTED]> To: Sent: Thursday, June 09, 2005 2:20 PM Subject: [Image-SIG] PDF to Image conversion > Greetings, > > Does anyone know of an elegant met

[Image-SIG] PDF to Image conversion

2005-06-09 Thread Franz Struwig
Greetings, Does anyone know of an elegant method to convert a PDF to an image...possibly using PIL? Thanks, Franz ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig