Re: ClipPathImage and image format?

Bob Friesenhahn <[email protected]> Wed, 17 Oct 2007 10:57:03 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <Pine.SOC.4.64.0710171046150.1894@freddy>
On Wed, 17 Oct 2007, Tim Chevalier wrote:
>
> Any suggestions? If the image containing the clip mask has to be a
> TIFF, is there a way to create such an image using a free program
> available for GNU/Linux? InkScape can't seem to save as TIFF, and when
> I use gm convert to convert my .svg image to a .tiff, it doesn't seem
> to preserve the clipping path.

I wish that I new more about this topic, particularly since the clip 
path support was developed by a GraphicsMagick team member, but alas I 
don't. Given the use of the term "8BIM" it seems that this format is 
often stored within Adobe Photoshop attached profiles.  Other comments 
lead me to believe that the clipping path is defined in Postscript 
syntax rather than SVG.  Postscript vector syntax and SVG vector 
syntax are fairly similar.  The "MVG" syntax that GraphicsMagick uses 
internally is also fairly similar so text transformations can be used 
to convert from Postscript vectors to MVG vectors.  There is support 
within the Postscript Level III coder (coders/ps3.c) for saving this 
clipping path in a Postscript file.

It seems that the best reference is likely Adobe's Postscript 
specification, which is a free download from Adobe's web site.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/