Re: forcing a format when emitting a blob?

[email protected] Mon, 23 May 2011 22:33:03 +0000
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Mon, May 23, 2011 at 05:18:15PM -0500, Bob Friesenhahn wrote:
> On Mon, 23 May 2011, [email protected] wrote:
>
>>
>> If I want to emit a GIF as a blob from an Image, it appears I need to set
>> image->magick to what I guess is an enumerated value. The example says
>> "GIF". I'm looking through the headers and not finding the enumeration,
>> and nothing in the docs. Pointers?
>
> Sometimes when something seems too obvious to be true, then in fact it  
> may actually be that obvious. :-)
>
> Always keep in mind that the GraphicsMagick library was derived from  
> ImageMagick which was originally just some command-line utilities  
> (without any library) and the software is evolved over a span of 21  
> years.  Due to the command-line utility heritage, the internals of much 
> of GraphicsMagick is oriented toward satisfying the implementation needs 
> of a command line utility.
>
> When in doubt, consult the documentation for the command line utility.

All sounds good.

When I'm forcing formats, I'm just strcpy()'nig directly to
image->magick. Is that correct, or am I abusing the structure? I'm
presuming this is a correct method, considering these things are
documented in "types", but "formats" page doesn't actually mention
writing this out, only that it's updated internally on read and ping.


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

-- 
Brad Harder
Method Logic Digital Consulting
http://methodlogic.net/
http://twitter.com/bcharder


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1