Forum Moderators: not2easy

Message Too Old, No Replies

Converting WMF files to GIF or JPG

Converting WMF files to GIF or JPG

         

arodriguez

3:24 pm on May 29, 2004 (gmt 0)

10+ Year Member



Hi. We are trying to convert hundreds of WMF files to GIF or JPG but are having some problems. We are trying to use a couple of utilities but both are having problems.

When we use these tools to convert the WMF file, it comes out distorted. The width of the file is shrunk and the image looks elongated. If I import the WMF image into Microsoft Word and then saveas HTML, then the image is converted to a GIF file and it looks fine. But I can't seem to get it to work correctly using automated tools (we don't want to have to convert each image manually).

Is this just a problem with our WMF files? Anybody have any ideas?

Thanks.
A.J.

bunltd

3:49 pm on May 29, 2004 (gmt 0)

10+ Year Member



Hi A.J. and welcome to WebmasterWorld!

You don't mention what utilities you're using to do the conversion but it sounds like some setting there is sizing the images arbitrarily and it is not proportional. I'm guessing the wmf's vary in size, so applying a set size (like 100x100) to the export function is giving you squashed/stretched gifs, since some are probably wider or taller proportionally...

Do you have a setting that will allow you to specify just a width or height but not both - or a constrain proportions setting?

LisaB

arodriguez

3:59 pm on May 29, 2004 (gmt 0)

10+ Year Member



Hi. Thanks for the reply.

Sorry, I forgot to mention the tools we are using. One of them is ImageMagick 6.0.1 - We are using their command prompt interface (http://www.imagemagick.org)

I am not sure what the name of the other tool is. It was attempted by someone I work with.

We are not setting any size parameters when we initiate the conversion. We are letting the utility manage the conversion. We are just telling it what the files we want to convert and to what format. But both are getting the exact same results.

Thanks.
A.J.

bunltd

4:11 pm on May 29, 2004 (gmt 0)

10+ Year Member



ImageMagick will let you specify size settings on the command line (by percentage) - take a look at these examples from ImageMagick's site:

here [www-106.ibm.com] and here [cit.gu.edu.au]

LisaB