|
From: | David Bateman |
Subject: | Re: GraphicsMagick++ expert help needed |
Date: | Tue, 14 Sep 2010 22:36:35 +0200 |
User-agent: | Mozilla-Thunderbird 2.0.0.22 (X11/20090706) |
Judd Storrs wrote:
On Tue, Sep 14, 2010 at 3:26 PM, John W. Eaton <address@hidden> wrote:I thought about that, but doesn't it seem odd to not have a way to write whatever kind of data you happen to have to an arbitrary filename rather than depend on file extensions? What is this, Windoze? :-/The command line graphicsmagick tools support a colon syntax. Such as: gm convert test.jpg png:noext I've started looking, but I don't yet know at what level the png: tag is processed (i.e. is it done by convert or by the library). --judd
Looking at the docs at http://www.graphicsmagick.org/api/types.html#imageinfo http://www.graphicsmagick.org/formats.html and the file /usr/include/GraphicsMagick/Magick++/STL.h I'd say something like imvec.begin().imageInfo().magick = "PNG" Magick::writeImages (imvec.begin (), imvec.end (), "anyfilename"); should write a PNG format. I haven't tested it though D.
[Prev in Thread] | Current Thread | [Next in Thread] |