Rob,
png capability exists already.  In WriteImage, use a filename with a
.png extension and specify "Image Magick supported format" for the
format.  That's DX's clue to hand the conversion over to Image Magick,
which decides what formats it supports via the filename's extension.
Note, if your binary was configured without Image Magick, "Image Magick
supported format" will not be offered to you. (the "..." after "format"
in the WriteImage Configuration Dialog Box brings up a list).  I suspect
the binary was configured without Image Magick from the behavior you
report.

"gif" format is listed separately for backward-compatibility reasons: DX
defaults the filename ("image") and favors the format you select over
any extension you might specify.  Formats are listed for formats that dx
historically supported directly.  Hence lots of dx visual programs don't
have an extension on the image filename: WriteImage would just paste it
on.  When we went open source we removed our gif code.  So that dx
visual programs that wrote gifs will continue to work, we kept gif as
one of the explicitly listed formats, and call ImageMagick, making sure
the extension is filled in so IM knows what to do.  However if IM is not
linked in, there is no support for gif and DX says so.  If IM support
for a given format is missing from IM, then the error that DX prints
comes from IM.

For formats supported by both IM and DX, it should be obvious how to
choose which one writes the file.

The magick folks did make a major change to API (libraries) so current
opendx binaries don't work with the just-released Image Magick version
5.2 .  Which is just to say if you don't have a compatible set of
binaries already, you might need to wait a few days for us to straighten
this out.

Pete

R. Lahaye" <[EMAIL PROTECTED]>  wrote:
>Hi,
>I'm running OpenDX 4.1.0 from recent CVS on
>Linux PC (RH 6.2).
>
>The WriteImage module allows the selection of GIF,
>but results in an error message when executed (GIF
>not supported or so).
>
>Apparently there's the license trouble I suppose.
>As far as I know, most applications then use the
>PNG format instead?
>
>Why is (FREE!) PNG not implemented in DX? Just a matter
>of time, or are there more fundamental objections?
>
>Regards,
>
>Rob.

Reply via email to