Hi Ross,

well here's the original RTF (created with Wordpad),

http://tmp.nethence.com/2x10.rtf

and its content,

{\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\fswiss\fcharset0
Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 lala\par
{\pict\wmetafile8\picwgoal29\pichgoal150
0100090000036000000000004a0000000000050000000b0200000000050000000c02080134004a
000000430f2000cc0000000a00020000000000080134000000000028000000020000000a000000
010018000000000000000000c40e0000c40e00000000000000000000eeaaaa1199110000eeaaaa
1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000eeaa
aa1199110000eeaaaa1199110000eeaaaa1199110000eeaaaa1199110000030000000000
}\par
a\par
}

it should work

-Pierre-Philipp

Quoting Ross Presser (07/08/2008 18:41),
> He means that you have to interpret the HEX, two digits at a time, as
> binary.  So the first byte of the file would be 0x01; the second byte 0x00;
> the third byte 0x09; etc.
> 
> Unfortunately, I tried this and it STILL wasn't a valid WMF file.
> 
> Then I saved your entire original file to disk as test.rtf ... it won't open
> with Word, WordPad or OpenOffice.  Where did you get it?
> 
> On Thu, Aug 7, 2008 at 12:35 PM, Pierre-Philipp Braun
> <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> 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
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to