Re: [NTG-context] 16-bit png
On Friday 15 February 2008 09:23:12 Taco Hoekwater wrote:
Alan BRASLAU wrote:
$ cat test.tex
\starttext \pdfimagehicolor=1 \externalfigure[red][width=\textwidth] \stoptext
There, fixed that.
That setting could go into the context core, though.
Does this have something to do with \pdfimagehicolor?
I am always surprised how many people ask a question, guess the correct answer themselves, but don't actually attempt to see if it works :-)
Best wishes, Taco
Thanks for the very rapid answer. However, no, neither of the proposed solutions work. 1. Of course, I tried "\pdfimagehicolor=1" without results before posting the question. (I would NEVER think about asking for help without trying different possibilities myself...) 2. "\setupcolors[state=start]" was also in my original file, but did not seem to make a difference, so I posted a most simplified example. What to do? I would think that there is something wrong with my configuration (debian/unstable), however pdflatex works just fine. Alan (P.S. Why would one need to specify \pdfimagehicolor in any case; From a user's point of view, shouldn't it just work transparently?)
can you send taco /me that image? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Alan BRASLAU wrote:
1. Of course, I tried "\pdfimagehicolor=1" without results before posting the question.
Next time, post also that you tried that already ;-)
(I would NEVER think about asking for help without trying different possibilities myself...)
Are you by chance running an old version of context? That input works for me, so you can try upgrading the context installation, or you can see if adding \pdfminorversion=5 to your input file helps. 16-bit color is not supported in older versions of the pdf standard, and older versions of context had an implicit \pdfminorversion=4. Best wishes, Taco
Hi, We did a bit of offlist emailing and have now fixed this issue. Because I got confused as well, here is a quick recap with the correct diagnostics, for future reference: The context example actually did work as promised: it included the image in 16-bit color in a PDF 1.5 document. The context document appeared not to work, because Alan's previewer (xpdf) does not deal with 16-bit images correctly. The file displayed fine with acroread or ghostscript. The latex document appeared to work, but only because it included a downgraded 8-bit color version of the image. To get the latex-effect in context, there are two possibilities: either \pdfminorversion=4 (or lower) or \pdfimagehicolor=0. To get the context-effect in latex, I have no idea. ? Best wishes, Taco
participants (3)
-
Alan BRASLAU
-
Hans Hagen
-
Taco Hoekwater