| <<<Back 1 day (to 2011/12/17) | 2011/12/18 |
d3c | what's the best way to work with ghostscript in ruby? system calls to gs? | 08:38.17 |
Robin_Watts | d3c: Can ruby make calls to a windows dll ? | 11:44.09 |
d3c | Robin_Watts: don't know. this is unix | 11:57.08 |
Robin_Watts | oh, sorry. | 11:57.19 |
| Well, there is a ghostscript API, which is exposed as a DLL on windows. | 11:57.47 |
| You can get the same thing as a lib on unix. | 11:58.05 |
| So you can drive gs from C (or any language that call call C). I suspect that's the best way to interwork with ruby. | 11:58.30 |
| Though making system calls to gs certainly works. | 11:58.45 |
d3c | alright, thanks. I think I'll stick with making system calls to gs. seems easier atm | 11:59.15 |
| do you have any experience with making ghostscript run fast on amazon ec2? | 11:59.41 |
| is that just a matter of creating a big enough server to gs to run on? | 11:59.56 |
Robin_Watts | Personally, no. | 12:00.25 |
| We have an EC2 instance on which we host git etc. | 12:00.37 |
| I have built and run gs on it, but never for production work. | 12:01.00 |
d3c | alright. looking at http://aws.amazon.com/ec2/instance-types/, what would be best for gs? we need something that can convert a 100-150M PDF to PNG+JPG in a matter of minutes. | 12:02.55 |
Robin_Watts | I suspect small would be fine. | 12:03.35 |
| Unless you're running many jobs at the same time. Or working at stupid resolutions, or having really complex pages. | 12:04.12 |
| It's hard to say for sure, because PDFs can vary massively in complexity (in a way that is not determined purely by their size) | 12:04.43 |
d3c | Robin_Watts: they're pretty complex. I actually found/filed a few bugs earlier due to the complexity. resolution is 200 and I'm converting to PNGs | 12:05.44 |
Robin_Watts | Well, I'd try setting it up on small, and just reboot into a larger one if that proves not to be large enough. | 12:06.21 |
d3c | Robin_Watts: ok. would I gain any performance if gs could (dunno if this is possible) perform all operations in memory? | 12:07.53 |
Robin_Watts | d3c: gs does perform everything in memory. | 12:08.22 |
| (it can be configured to dump the clist to disc, but I don't think that's the default - would have to check) | 12:08.51 |
d3c | ok, I'll see how it performs. thanks | 12:09.43 |
aleray | hi, is there any ide for gs on linux ? | 21:03.41 |
| i read about wxghostscript but it seems to be for windows | 21:04.02 |
| I'm interested in watching the stack of a gs program | 21:04.27 |
| Forward 1 day (to 2011/12/19)>>> | |