[magick-users] RTF/HEX images
Gabe Schaffer
magick at gabe.com
Thu Aug 7 10:12:41 PDT 2008
Sorry, you must convert the hex to binary before putting it into a WMF file.
GNS
On 8/7/08, Pierre-Philipp Braun <pbraun at nethence.com> wrote:
> Hi,
>
> then convert prints this error,
>
> ERROR: /misc/src/release/libwmf-0.2.8.4-2/src/libwmf-0.2.8.4/src/meta.c
> (179): wmf_header_read: this isn't a wmf file
>
> I've put all the HEX code in the file,
> 0100090000036000000000004a0000000000050000000b0200000000050000000c02080134004a
> 000000430f2000cc0000000a00020000000000080134000000000028000000020000000a000000
> 010018000000000000000000c40e0000c40e00000000000000000000eeaaaa1199110000eeaaaa
> 1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000eeaa
> aa1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000030000000000
> I tryed both with and w/o carriage returns. Maybe I should ommit some
> bytes ?
>
> -Pierre-Philipp
>
> Quoting Gabe Schaffer (07/08/2008 18:26),
> > On 8/7/08, Pierre-Philipp Braun <pbraun at nethence.com> wrote:
> >> Hi,
> >>
> >> is it possible to convert RTF/HEX images ? In example, this is a 2x10
> >> pixels, eeaaaa on the left, 119911 on the right,
> >>
> >> {\pict\wmetafile8\picwgoal29\pichgoal150
> >
> > If you look closely, this is a WMF (Windows MetaFile). You could write
> > a Perl script to extract the hex portion and save it as binary to a
> > WMF file, then have ImageMagick convert the it to your preferred
> > format.
> >
> > GNS
>
More information about the Magick-users
mailing list