| <<<Back 1 day (to 2016/07/27) | 20160728 |
Techspectre | Is there a reason ghostscript can't generate a preview of EPS files downloaded from goqr.me ? | 06:09.33 |
| Other EPS files seem to work fine | 06:09.49 |
chrisl | Techspectre: the one I just tried works fine | 06:18.16 |
Techspectre | chrisl, really? From that site? | 06:19.40 |
chrisl | Yeh | 06:19.47 |
Techspectre | I'm trying to view it in XnViewMP or in Explorer with SageThumbs | 06:20.04 |
| Either doesn't view it | 06:20.10 |
chrisl | I'm using Ghostscript | 06:20.17 |
Techspectre | Ghostscript has a viewer? | 06:20.35 |
chrisl | Ghostscript has devices which display on screen, on some platforms | 06:21.13 |
Techspectre | Ah I see. I just opened what appears to be a shell | 06:21.58 |
| Though I don't know how to use it | 06:22.59 |
chrisl | Did it open a display window, too? | 06:23.40 |
Techspectre | no | 06:24.06 |
| I'm trying this on Windows 8.1 x86-64 | 06:24.32 |
| Is there a way to get this utility to open a file? | 06:25.00 |
chrisl | Ghostscript is a command line application. | 06:25.41 |
Techspectre | I see. What would be the command to open a file in C:\ dir for instance? | 06:26.21 |
chrisl | The executable should be somewhere like \Program Files\gs\gs9.18\bin\gswin32.exe | 06:27.22 |
| Depending on the version number and 32/64 bit version you have installed | 06:27.44 |
Techspectre | So you'd run the executable with an argument pointing to filename? | 06:28.09 |
chrisl | Yeh, assuming your system drive is c: it would be: c:\Program Files\gs\gs9.18\bin\gswin32.exe c:\myfile.eps | 06:28.51 |
Techspectre | Okay let me try that | 06:29.04 |
chrisl | But you'll have to check because it might be "Program Files (x86)", the 9.18 could be a different depending the version, and the gswin32.exe might be gswin64.exe - you'll have to look at your c: drive to establish those | 06:30.33 |
Techspectre | chrisl, is this how you viewed it? | 06:35.08 |
chrisl | Techspectre: Well, I'm running linux, so slightly different, but essentially yes | 06:36.01 |
Techspectre | chrisl, do you know of a GUI utility (that makes use of gs) which will view these? I use Windows at work and need a non-CLI method of viewing a collection of these | 06:37.59 |
chrisl | Techspectre: You can try http://gsview.com/ it uses gs to convert to PDF, then mupdf to display the PDF file | 06:39.16 |
Techspectre | chrisl, thanks, I'll check that out now | 06:41.17 |
| strangely, under Ubuntu I can't view this thing either | 06:41.25 |
chrisl | What happens under Ubuntu? | 06:41.43 |
Techspectre | I'm just doing 'gs qrcode.eps' and it brings the viewer up but it's blank | 06:41.47 |
| Yet nautilus seems to view it lol | 06:42.31 |
chrisl | nautlus is using Ghostscirpt | 06:42.50 |
| s/nautlus/nautilus | 06:43.02 |
Techspectre | too bad Windows isn't using nautilus lol | 06:43.19 |
chrisl | On Ubuntu if you do something like "gs -r50 qrcode.eps" (sans quotes) you might see the full page | 06:43.58 |
Techspectre | yes you're right | 06:45.43 |
| the viewer isn't robust enough though, it seems | 06:45.51 |
| the qr code appears in the corner, very small | 06:46.01 |
chrisl | Oh, it's *very* robust, just not very flexible | 06:46.31 |
Techspectre | I see | 06:47.38 |
| So if I want to use gsview I imagine I have to have mupdf installed, right? | 06:47.47 |
chrisl | No, gsview 6 is complete - the download include the Ghostscript and mupdf libraries it requires | 06:48.21 |
Techspectre | Ah | 06:48.32 |
| trying it | 06:48.38 |
chrisl | Techspectre: there is actually a problem with the file in that the formatted comments required for EPS are not quite correct. | 06:59.10 |
ray_laptop | There are -dEPSCrop that sets the image size to the EPS BoundingBox and -dEPSFitPage that will expand the BoundingBox to the current page size | 15:08.36 |
| but both rely on gs recognizing the file as EPS (which may not work if the comments are wrong) | 15:09.30 |
^Simon^_ | Hi, I'm trying to save an image into a postscript file but I think I broke it somehow. I'm using the postscript from http://stackoverflow.com/questions/4924819/converting-writing-a-bufferedimage-to-postscript | 15:29.28 |
| that works, but my altered script doesn't. ghostscript complains /undefined in ... | 15:29.54 |
| the ... is one of the lines from the encoded image data. | 15:30.19 |
kens | Then you got the amount of data wrong. Either you supplied too much data, didn't ssupply the correct decoding or got the width/height of the image incorrect. Or possibly the number of components/BPC is incorrect. | 15:30.57 |
^Simon^_ | I'm using the width/height from GD::Image, multiplying by 3 bytes per pixel to make a string to store the image data in | 15:32.11 |
kens | GD::Image mens nothgin to me | 15:32.24 |
Robin_Watts | Smells perlish. | 15:32.35 |
^Simon^_ | perl module to read an image. | 15:32.41 |
kens | SO, not really relevant. My point remains the same, you've done something wrong | 15:33.00 |
Robin_Watts | and is the image data 8 bits per component ? | 15:33.04 |
kens | There's really no way for us to tell fmro what you've supplied what you've done wrong | 15:33.14 |
| What format was the original image ? | 15:33.59 |
Robin_Watts | Make yourself a 2x2 pixel image, output the file from that, and put it up somewhere for us to look at. | 15:34.05 |
^Simon^_ | yes. it's encoding the rgb values for each pixel as a 6 character hex string. | 15:34.08 |
Robin_Watts | I'd guess that the postscript is not expecting the data to be hex encoded :) | 15:34.49 |
| but that's just a guess. | 15:34.56 |
kens | Which would go back to my comment of 'didn't supply the corect decoding' | 15:35.19 |
Robin_Watts | kens: Oh yes, not suggesting otherwise. | 15:35.45 |
^Simon^_ | the url that I linked originally has hex encoded rgb values. | 15:35.57 |
kens | There's so many things that could be wrong, its impossible to tell fomr what's been described. Put the original image and the PostScript file somewhere we can look at it, and maybe we can tell you what's wrong with it | 15:36.02 |
Robin_Watts | ^Simon^_: I for one won't wade through a huge file. Make a 2x2 image and convert that, cos it keeps the size small and makes it obvious. | 15:36.40 |
^Simon^_ | it looks like it's not reading enough data. | 15:37.20 |
| or I've supplied too much | 15:37.24 |
kens | Well, yes.... | 15:37.41 |
^Simon^_ | ghostscript gives the current byte count | 15:37.42 |
| and that's about 10k before the end of the file.. towards the end of the image data. | 15:37.58 |
kens | If you are experimenting for the first time, don't use complex examples | 15:38.18 |
^Simon^_ | I'm assuming the byte count is the place where the error occurred. | 15:38.20 |
Robin_Watts | ^Simon^_: I think we've been as clear as we can be as to what you need to do to get more help from us. | 15:38.34 |
kens | It isn't really relevane where the error occured, simply that there is an error | 15:38.38 |
^Simon^_ | Just trying to make a smaller image - it's on a development system but it's generated by catalyst and a bunch of modules so it's proving a little tricky. | 15:39.21 |
kens | Can't you just use something like GIMP and *make* a smaller image ? | 15:39.44 |
Leaky2 | I think my session died after I pasted that url. | 15:46.55 |
| Looks like I have 10 bytes of hex in there somehow. | 15:47.17 |
Robin_Watts | Leaky2: We didn't get the paste. | 15:47.40 |
Leaky2 | ah, probably died before I pasted it then, it echoed it back but webirc.. :( | 15:48.08 |
kens | That's a clue that you'll need to paste it again if you want us to see it..... | 15:49.14 |
Leaky2 | It's ok - using the smaller image was a good idea. | 15:50.01 |
| Found a bug in my perl already | 15:50.11 |
| first it was missing the last line of encoded data, and now it dumps a 4x4 image into the postscript instead of a 3x3 image. | 15:50.44 |
| must be tired :( | 15:50.57 |
| well it works now :) | 15:54.39 |
| Just need to scale the image before adding it to the postscript. | 15:54.53 |
| Is there a way to make ghostscript (in windows) print the file? | 15:55.26 |
kens | You can use the mswinprs2 device to print to a printer if that's what you mean | 15:55.49 |
Leaky2 | from the command line? | 15:56.03 |
| or within the ghostscript console | 15:56.18 |
kens | While trying not to be offensive, have you *read* the documentation ? | 15:56.45 |
| Use the mswinpr2 device | 15:56.52 |
Leaky2 | I've read bits of the documentation, but obviously not the right bits. | 15:58.27 |
kens | The Ghostscript console is nothing more than an interactiove input to Ghostscript. Its not special in any way, there isn't anything you can do at the Ghostscript command prompt that you can't do by writing a PostScript program and sending that as an input file | 16:02.28 |
Leaky2 | ok. | 16:04.33 |
| i shall go read some more. | 16:04.39 |
| gotta go now though, thanks. | 16:04.57 |
sebras | HenryStiles: I've never heard of genymotion emulator before. I'm guessing that it's not very common. | 18:09.17 |
| Robin_Watts: do modern android environments compile to x86? | 18:09.40 |
Robin_Watts | yes. | 18:09.54 |
| Originally it was arm only. | 18:10.06 |
| Then arm-v7a | 18:10.11 |
| then x86 and mips too. | 18:10.16 |
sebras | Robin_Watts: right. and the emulator in there supports x86 I imagine? | 18:10.31 |
| Robin_Watts: if so I could try that, and if that also works mark it as WONTFIX..? | 18:10.46 |
Robin_Watts | The emulators support arm. | 18:11.03 |
sebras | Robin_Watts: only | 18:11.10 |
Robin_Watts | I suspect they support x86 etc too, but I've only used the ARM ones. | 18:11.42 |
| I have a 64bit ubuntu here that I can try stuff on if needed. | 18:12.00 |
sebras | Robin_Watts: if you don't mind taking the pdf from 696954 for a spin? | 18:12.34 |
Robin_Watts | Sure. | 18:12.46 |
sebras | is trying to figure out if my android toolchain will even do x86. | 18:12.46 |
Robin_Watts | plays guess the bugzilla password. Ahem. | 18:14.45 |
sebras | Robin_Watts: correct battery horse staple | 18:15.48 |
Robin_Watts | sebras: That does indeed crash on ubuntu. | 18:17.39 |
sebras | Robin_Watts: right, so this could be a 64-bit only issue. | 18:18.52 |
| Robin_Watts: since I fail to reproduce it. | 18:19.02 |
Robin_Watts | could be. Just trying with the latest source. | 18:19.14 |
| yeah, still fails. | 18:20.05 |
sebras | Robin_Watts: mutool draw -s t boswell.pdf | 18:21.42 |
Robin_Watts | hmm? | 18:22.10 |
sebras | Robin_Watts: works like a charm here. :-/ | 18:22.12 |
Robin_Watts | mutool draw -o out.png ../MyTests/p.pdf fails for me. | 18:22.28 |
sebras | wait.. p.pdf? | 18:23.00 |
Robin_Watts | yeah. | 18:23.37 |
| Do you mean 696945 ? | 18:23.50 |
sebras | Robin_Watts: so... we are both talking about http://bugs.ghostscript.com/show_bug.cgi?id=696945 | 18:23.51 |
| Robin_Watts: because p.pdf reminds me of http://bugs.ghostscript.com/show_bug.cgi?id=696954 which is not the same. | 18:24.25 |
Robin_Watts | You said 696954 above :) | 18:24.47 |
| But let me try with boswell.pdf from the other bug. | 18:25.02 |
sebras | Robin_Watts: argh... I'm sorry. :) | 18:25.37 |
Robin_Watts | no worries. | 18:25.43 |
| boswell.pdf works for me. | 18:30.32 |
sebras | Robin_Watts: ok, and the guy reproduced this in the genymotion x86 android emulator. | 18:32.44 |
Robin_Watts | sebras: There is SSE code in openjpeg... | 18:33.29 |
| I wonder if he disables that, will it work ? | 18:33.41 |
sebras | Robin_Watts: no idea, but it sounds plausible. | 18:36.49 |
| Robin_Watts: how did you know they have SSE-code? | 18:36.59 |
Robin_Watts | cos I disabled it for smartoffice. | 18:38.44 |
HenryStiles | the file does spew info stuff in gs which is odd. | 18:40.02 |
| We don't want to spend anytime working on simulator environments though and I had no problems with it on 64 bit linux | 18:41.06 |
sebras | HenryStiles: btw, I haven't seen tor8 online, so haven't had the chance to ask about itineraries. | 18:46.49 |
HenryStiles | sebras: okay thanks. So you have tentative dates in mind and are waiting for him to confirm with Miles? | 18:49.52 |
sebras | HenryStiles: no, I have not tentative dates right now. | 18:50.17 |
HenryStiles | sebras: may have to phone him or something depending on how much notice the hotel needs. | 18:50.34 |
| I mean miles or I may do that. | 18:51.38 |
sebras | HenryStiles: a common friend had lunch with him today. I asked him to pass on a message. | 18:54.48 |
| Robin_Watts: I tested boswell.pdf on my android device using a git HEAD built mupdf and it also survives. | 19:00.21 |
| Robin_Watts: how did you disable SSE for SO? | 19:01.22 |
Robin_Watts | sebras: In the openjpeg code? | 19:01.36 |
| I grepped for "SSE" :) | 19:01.50 |
| there is a define. | 19:01.55 |
sebras | Robin_Watts: yes. ssems to be ifdef __SSE__ but I'm guessing that there's some compiler switch? | 19:02.02 |
Robin_Watts | sebras: No, I fudged it with some #defines of my own I think. | 19:02.31 |
sebras | Robin_Watts: "On 64-bit, to disable SSE instructions, use -mno-sse" | 19:03.36 |
Robin_Watts | sebras: Nice one. | 20:10.32 |
| Forward 1 day (to 2016/07/29)>>> | |