From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47152 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: unwanted rgb-->gray conversion (mkiv) Date: Mon, 02 Feb 2009 14:38:41 +0100 Message-ID: <4986F761.8030909@gmx.net> References: <497F454A.8090506@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080808050504060107040705" X-Trace: ger.gmane.org 1233609517 16539 80.91.229.12 (2 Feb 2009 21:18:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 21:18:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 02 22:19:51 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LU6Ct-0007Fy-7e for gctc-ntg-context-518@m.gmane.org; Mon, 02 Feb 2009 22:19:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 921EE1FD08; Mon, 2 Feb 2009 22:18:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06281-01-62; Mon, 2 Feb 2009 22:17:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2C8F1FCEC; Mon, 2 Feb 2009 22:01:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A26791FCBB for ; Mon, 2 Feb 2009 22:01:22 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11057-04-15 for ; Mon, 2 Feb 2009 22:00:09 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 93C691FE27 for ; Mon, 2 Feb 2009 14:38:44 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with SMTP id n12DcgYT022596 for ; Mon, 2 Feb 2009 14:38:44 +0100 Original-Received: (qmail invoked by alias); 02 Feb 2009 13:38:42 -0000 Original-Received: from i577BFDCE.versanet.de (EHLO [192.168.1.3]) [87.123.253.206] by mail.gmx.net (mp060) with SMTP; 02 Feb 2009 14:38:42 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1/3MzRaKQj3i7q3W/zzXjRUwq9J7pMUPYqIVFJf5U xWm/jDmSHWBtbW User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <497F454A.8090506@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68,0.64 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.20; country=DE; region=01; city=Karlsruhe; latitude=49.0047; longitude=8.3858; http://maps.google.com/maps?q=49.0047,8.3858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 173739074 - 6d436fc5b8da X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47152 Archived-At: This is a multi-part message in MIME format. --------------080808050504060107040705 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Peter Rolf schrieb: > Hi Hans, > > The attached example works fine with mkii (text and gfx both use RGB > colors). Using mkiv reduces the colorspace of the graphic to GRAY. > Sadly PDFX/-4 doesn't allow to mix color profiles of colorspace RGB > with GRAY ones. So I'm forced to always use the RGB colorspace... > > Best wishes, Peter > ------------------------------------------------------------------------ > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ mh, the problem is a little more complex. Mkii reduces rgb(0,0,0) text into gray(0), in mkiv color is as expected. Updated the example... --------------080808050504060107040705 Content-Type: text/plain; name="reduction.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="reduction.tex" \setupcolors[state=start] % all colors are in RGB color space (and should stay there) \definecolor[rgbgray] [r=.5,g=.5,b=.5] \definecolor[rgbblack] [r=0,g=0,b=0] \definecolor[rgbwhite] [r=1,g=1,b=1] \startuniqueMPgraphic{foo}{size,color} fill unitsquare xyscaled(\MPvar{size},\MPvar{size}) withcolor \MPvar{color}; draw boundingbox currentpicture withcolor \MPcolor{rgbblack}; \stopuniqueMPgraphic \starttext \uniqueMPgraphic{foo}{size=2.5cm,color=rgbgray} % unwanted gray conversion (mkiv) \uniqueMPgraphic{foo}{size=2.5cm,color=rgbblack} % unwanted gray conversion (mkiv) \uniqueMPgraphic{foo}{size=2.5cm,color=rgbwhite} % unwanted gray conversion (mkiv) \color[rgbgray] Gray text. % ok \blank \color[rgbblack] Black text. % unwanted gray conversion (mkii) \blank \framed[background=color,backgroundcolor=rgbblack,foregroundcolor=rgbwhite] {White text} % unwanted gray conversion of background color (mkii) \stoptext --------------080808050504060107040705 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------080808050504060107040705--