From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79782 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: drops module (draft) Date: Thu, 6 Dec 2012 13:05:30 -0500 (EST) Message-ID: References: <50C0D0F4.3020806@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354817154 28354 80.91.229.3 (6 Dec 2012 18:05:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2012 18:05:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 19:06:06 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tgfpe-0001Bx-4Z for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2012 19:05:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8EDC102AE; Thu, 6 Dec 2012 19:05:45 +0100 (CET) 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 R32hMKCQ+cwl; Thu, 6 Dec 2012 19:05:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8A68E10233; Thu, 6 Dec 2012 19:05:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0779710233 for ; Thu, 6 Dec 2012 19:05:38 +0100 (CET) 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 Ou4118OEOwPw for ; Thu, 6 Dec 2012 19:05:36 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 79E191022B for ; Thu, 6 Dec 2012 19:05:36 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB6I5X26015425 for ; Thu, 6 Dec 2012 19:05:34 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 50C0DE6B.A7539.22043 ; Authuser adityam; 6 Dec 2012 13:05:31 EST In-Reply-To: <50C0D0F4.3020806@gmx.net> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Iwi5xXt - 15ef5d775f8d - 20121206 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79782 Archived-At: On Thu, 6 Dec 2012, Peter Rolf wrote: > Hi all, > > a first version of the 'drops'-module (MkIV only) is available at > > https://www.wuala.com/indiego/public/ConTeXt/drops/?key=caiCGLasLFmJ > > > Taken from the included documentation.. > [..] > 'drops' is a small extension for ConTeXt, that allows you to add drop > shadows to rectangular regions (so called boxshadows). A working > installation of ImageMagick (IM) is required to create the shadow > graphics. The supported color spaces are CMYK, RGB and Gray, the file > formats are limited to PNG and JPG. > [..] > Read the manual for detailed information. Nice. > The attached example is just a small test file for the 'rotation' > parameter (a compensation for the object rotation, so that the shadow > stays at the given direction). You will find other examples in the > documentation and there is also a 'pile' example with the complete > source. The 'presets' pdf contains the predefined setups for different > shadow (or frame) types and it's source is a good starting point for > your own experiments. > > This is a first draft, but most things work quite stable. If you want to > help, test as much as possible. :-) > > *You need a recent version of ImageMagick for this module.* I always thought that shadows were possible to do in PDF (after all TikZ does it using some type of PDF primitives). Since you are the PDF expert, I am interested in knowing why you choose to go the ImageMagic route. In terms of interface, wouldn't it be better if this somehow interfaced with the background/overlay mechanism. For example, \definedropshadow[identifier][...options...] which will define an overlay that will call ImageMagic with appropriate parameters (and caching the results if speed is a concern), and then \externalfigure[name][background=identifier] should draw a dropped shadow around the image Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________