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?) 
--- Begin Message ---
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

--- End Message ---
--- Begin Message ---
Hi

Does adding \setupcolors[state=start] at the top of the context file help?

Hans, how about enabling colors by default in mkiv?

Aditya

On Thu, 14 Feb 2008, Alan BRASLAU wrote:

> Hello,
>
> I am having problems including 16-bit png files in ConTeXt. In the following
> example, red.png is a 800x600 image of red pixels. The resulting test.pdf
> shows a BLACK rectangle. (The same problem exists with real images.)
>
> However, I can produce the desired result with my installation under
> pdflatex...
>
> $ cat test.tex
> \starttext
> \externalfigure[red][width=\textwidth]
> \stoptext
> $ file red.png
> red.png: PNG image data, 800 x 600, 16-bit/color RGB, non-interlaced
> $ texexec test
>
> $ cat test2.tex
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> \includegraphics[width=\textwidth]{red}
> \end{document}
> $ pdflatex test2
>
> My distribution (debian + texlive) uses
> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
> in both cases.
>
> Does this have something to do with \pdfimagehicolor?
>
> Thank you
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
>
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

--- End Message ---
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to