Re: Specifying the file format when writing to a Blob

Marten Lehmann <[email protected]> Thu, 06 Sep 2012 19:10:16 +0200
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
> You have not overseen anything.  This is a design defect in the API. I
> believe that an effective workaround would be to use the
> Magick::Image::magick() (i.e. image.magick()) method to set the format
> in the first frame of the vector/list.  This should work because the
> writer uses the current image set format from the first image in the
> list when writing.
>
> I am adding this to the top of my TODO list and perhaps it will be fixed
> in this next release.

That would be great. Once it is added in GraphicsMagick, I will contact 
the author of pgmagick (python) to add it to the python interface as well.

Btw.: pgmagick uses the STL interface, so it would be nice if you could 
add something like

void writeImages( InputIterator first_,
                   InputIterator last_,
                   Blob *blob_,
                   const std::string &magick,
                   bool adjoin_ = true) {

to Magick++/lib/Magick++/STL.h!

Kind regards
Marten

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/