IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2015/08/30)20150831 
tor8 sebras: great news!08:54.06 
sebras tor8: I know! I'm a bit busy today so if there are any problems you'll have to solve them or be patient. ;)09:00.24 
tor8 Robin_Watts: is there any reason why we don't do the invert_cmyk_jpeg case for non-XPS jpeg files?14:20.37 
  a lack of test cases, or do we have actual PDF test cases?14:20.52 
  I just ran across a CBZ with CMYK jpegs that need inverting14:21.03 
thealchemist Any mupdf developers here? Is it possible to change the color of the background in PDF? I like something like #262626 (bg) and #bcbcbc (fg)14:36.34 
  Its really light on the eyes, is that possible? Zathura is the only vim like PDF Viewer that allows me to do this14:37.02 
  I like MuPDF overall but this feature is missing14:37.36 
tor8 thealchemist: shift-C14:52.24 
thealchemist shift-C and I get a slighly pinkish bg with black fg a bit like solarized light14:55.26 
  I am looking for #262626 bg and #bcbcbc fg as those are really light on the eyes14:55.51 
tor8 you can change the background if you pass "-C bcbcbc" to the mupdf command line14:56.55 
thealchemist ok let me try that14:57.08 
tor8 no way to change the black level though, but adding that should be easy enough if you're willing to code14:57.52 
  we call a function fz_tint_pixmap to change the white14:58.05 
thealchemist right tor8 I will have a look but meanwhile mupdf file -C bcbcbc is not having any effect15:00.38 
  its still solairzedlight type of bg15:01.28 
tor8 thealchemist: which OS are you using?15:05.21 
  ah, you need to put the command line flags before the filename15:05.48 
  mupdf -C bcbcbc file.pdf15:05.55 
thealchemist that I tried first it says -C file not found15:07.13 
  any thoughts tor815:11.32 
  I might have to start checking the source code I guess15:11.42 
tor8 thealchemist: which OS and which version of mupdf are you running?15:14.46 
  older version for windows do not handle command line options, but the latest one should.15:15.31 
thealchemist debian testing, version isn't showing up as list of options but copyright is till 201415:16.23 
Robin_Watts debian versions will be old.15:16.52 
thealchemist oh thats sad I thought debian testing will be sort of state of the art15:17.13 
tor8 the debian version most likely predates the -C option by a couple of releases15:17.15 
Robin_Watts state of the debian art. They are still marvelling over the discovery of fire there.15:17.41 
thealchemist is there are deb/rpm distro that is really cutting edge15:17.42 
  lol Robin_Watts15:17.59 
thealchemist is cloning15:18.56 
  will try to see if I can compile the latest version15:19.19 
  I thought debian testing would be new15:19.32 
netherlands good evening from the netherlands16:38.25 
  Does somebody have some tips to get best performance from ghostscript on a quadcore system with 8gb ram?16:39.00 
Robin_Watts netherlands: We'd need more information about your usage pattern.16:39.53 
  What are you doing with gs?16:40.03 
netherlands mainly concatenating different pdf's together16:40.35 
  I made some postscript code that strips out any existing PDFMark objects and then glues together different kind of pdf files16:41.09 
  the output format is version 1.616:41.20 
Robin_Watts netherlands: So you're using pdfwrite.16:41.37 
netherlands yes16:41.41 
  I can post some postscript code but it is rather large16:41.53 
Robin_Watts The first thing to realise is that you are not concatenating PDFs.16:41.56 
  What you are doing is creating completely new PDFs that just happen to look as close to the originals as we can manage.16:42.19 
netherlands I know.. I render it to a completely new pdf file16:42.25 
Robin_Watts Images are decompressed, then recompressed, etc.16:42.36 
netherlands I also use it to get rid of any malformation in existing pdf files16:42.58 
  since I get the from all kind of different sources16:43.09 
Robin_Watts netherlands: There are faster ways to 'repair' PDFs than to run them through gs.16:43.33 
netherlands so the versions can range from 1.2 to 1.816:43.35 
Robin_Watts but it sounds to me like you're doing a few files here and there, rather than setting up a server to do bulk processing of PDFs?16:44.06 
netherlands I have a server that is dedicated just for this16:44.54 
  this are the parameters I use16:45.58 
  If split Then outputFile = ExtractFileNameWithOutExtension(outputFile) & "_page%d.pdf" Else outputFile = ExtractFileNameWithOutExtension(outputFile) & ".pdf" End If ReDim Args(13) 'Args(0) = "-sFONTDIR=c:\\windows\\fonts" Args(0) = "-q" Args(1) = "-dNOPAUSE" Args(2) = "-dBAT16:46.00 
  uhm .. that is unreadable when pasting :-)16:46.37 
Robin_Watts yeah. looks like you're writing to Args(0) twice to me.16:47.37 
  netherlands: pastebin is your friend.16:47.58 
netherlands -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/printer -dEmbedAllFonts=true -dSubsetFonts=true -dCompressFonts=true -dConvertCMYKImagesToRGB=false -dNumRenderingThreads=<amount of cpu's> -dCompatibility=1.6 -r300 -sPAPERSIZE=a4 -sDEVOCE=pdfwrite16:49.14 
Robin_Watts netherlands: Our pdfwrite expert has left for the night. You might want to come back in about 16 hours time and ask again then.16:50.38 
netherlands http://pastebin.com/GAJTUnJB16:51.40 
  I'm not a postscript expert so it could be that I did write some very strange code :-)16:52.03 
  I normally program in C#16:52.21 
  So it took me some time to figure out how to write postscript16:52.37 
  since that I thinking the other way round then I'm used to do in c#16:53.20 
Robin_Watts backwards ass postscript is16:54.17 
netherlands yes16:55.19 
  that took some time to figure out16:55.26 
  But I do some advanced things so I had no other choice then using postscript16:56.01 
  I'm just a novice in postscript16:56.37 
thealchemist .CLEAR17:00.54 
netherlands but I'll come back tomorrow17:02.11 
  have a nice evening17:02.18 
mvrhel_laptop Robin_Watts: are you around?19:17.22 
  I realize it is probably getting a bit later19:17.46 
  there19:17.49 
  oh I see 19:18.46 
  never mind19:18.50 
  lunch time. bbiaw19:21.17 
cryptopsy can mupdf read file header to determine what filetype an image is if the extension is not in the file name?20:17.05 
sebras cryptopsy: it does do something like that in some situations.20:50.28 
  cryptopsy: hm. I think it works like this: in source/cbz/muimg.c it uses the extension or the mimetype to determine if it is a valid image.20:53.31 
  cryptopsy: if it is then it uses the magic numbers in the file headers to determine exactly how to decode it.20:53.52 
  cryptopsy: as far as I can understand after a brief excursion into the code anyway...20:55.12 
Robin_Watts cryptopsy: Yes.22:55.31 
  Each document handler has a routine that looks at a file and returns a 'score' for how likely it is to be that file.22:55.58 
  The mimetype and extension can be considered.22:56.12 
  so can the file contents.22:56.16 
 Forward 1 day (to 2015/09/01)>>> 
ghostscript.com
Search: