From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59748 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: blurred shadow on images? Date: Mon, 21 Jun 2010 08:42:57 +0200 Message-ID: <4C1F09F1.6030404@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277102587 6760 80.91.229.12 (21 Jun 2010 06:43:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2010 06:43:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 21 08:43:06 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OQaio-0003sH-EW for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jun 2010 08:43:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B661C9C04; Mon, 21 Jun 2010 08:43:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ERVrZV0JHx5M; Mon, 21 Jun 2010 08:43:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70687C9BFB; Mon, 21 Jun 2010 08:43:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E311BC9BFB for ; Mon, 21 Jun 2010 08:43:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7AM2m0MP3h3C for ; Mon, 21 Jun 2010 08:42:58 +0200 (CEST) Original-Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by balder.ntg.nl (Postfix) with ESMTP id 4DF20C9AB7 for ; Mon, 21 Jun 2010 08:42:58 +0200 (CEST) Original-Received: from [192.168.178.26] (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id o5L6gvpQ026294 for ; Mon, 21 Jun 2010 08:42:57 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.23 (X11/20090822) In-Reply-To: X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59748 Archived-At: Henning Hraban Ramm wrote: > I'd like to place some plain photos rotated (say 12=B0) and with a blurre= d = > shadow above some colored elements, i.e. the shadow must use transparency. > I guess I could get such using ImageMagick, but is there a possibility = > using ConTeXt or one of its favourite friends? > I'd prefer a solution that works with CMYK data. Creating a semi-transparent backdrop with metapost is quite simple, but I am not sure whether that works with cmyk, you'll have to try yourself. Code goes something like this: \startuniqueMPgraphic{texthole} for dx =3D 0 upto 40: dy :=3D dx; wa :=3D 10 + dx; wb :=3D \overlaywidth - dx - 10; ha :=3D dy + 10; hb :=3D \overlayheight - dy - 10; fill (wa,ha)--(wb,ha)--(wb,hb)--(wa,hb)--cycle withcolor transparent("normal", .04,white); endfor; \stopuniqueMPgraphic > If there isn't - is the transparency of PNG usable? Sure, and may use less resources than mp drawings, but that is definitely RGB Best wishes, Taco ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________