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
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 ___________________________________________________________________________________
Aditya Mahajan wrote:
Hi
Does adding \setupcolors[state=start] at the top of the context file help?
Hans, how about enabling colors by default in mkiv?
i'll give it a thought (I always need to set it myself too -) Hans ----------------------------------------------------------------- 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:
$ 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
participants (4)
-
Aditya Mahajan
-
Alan BRASLAU
-
Hans Hagen
-
Taco Hoekwater