How to open .wmf image files in Puppy? (Solved)

Using applications, configuring, problems
Message
Author
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#16 Post by Flash »

Thanks everyone for your help. Sorry I haven't been responding. I didn't know there were any new replies. I didn't click the "watch this topic for replies" option and I didn't see the thread in the list of new posts since my last visit. :oops:

Anyway, I won't have time to try anything new for a day or so. Again, thanks.

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#17 Post by Dingo »

on CTAN I found

wmf2eps
http://ctan.org/pkg/wmf2eps
A Win32 program to convert MS-Windows Metafile Graphics (WMF) containing either vector-images or bitmaps into Encapsulated PostScript format having tight bounding-boxes at exactly the same size as the WMF-originals.
I have not yet tried if it is working with wine
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#18 Post by Flash »

kooliepup wrote:...if you don't want to stuff around with all that, post a .wmf file here and I will see what else opens it.
Okay, here's one. Change "tar.gz" to "wmf". I have no idea what it should look like.

If .wmf is Microsoft Office's native image format, OpenOffice might be able to open it, but could it convert it to jpg?
Attachments
ADV003.tar.gz
(17.41 KiB) Downloaded 193 times

User avatar
kooliepup
Posts: 292
Joined: Sat 14 Jan 2012, 03:40
Location: Victoria, Australia

#19 Post by kooliepup »

So, do you want the good news or the bad news?

OK, the bad news..

Won't open
XNView MP
Viewnior
Fotowall
Geeqie
GQView
Gimp 2.7
Fotoxx
Mashup
Inkscape
InkLite
Posterazor
Pencil
MTPaint
Laidout
TonicPoint
Dia
Scribus
Xara
ImageMagick
GraphicsMagick

Will open
sdraw (LibreOfficeDraw)

and it will export it to a variety of formats.

Your logic is in a healthy condition. :)

It's the Jetsons.

Yes, even tho it is a vector format, it will export to .jpg, which is a raster format.

Cheers.
There's no place like 127.0.0.1

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#20 Post by Makoto »

Maybe one of the XNView (non-MP) versions might do it, I don't know. MP is still more of a work-in-progress program, so it might not handle everything the original XNView does.

Edit: Quick test; in Windows, my versions of XNView and GIMP (as well as IrfanView) opened the WMF with no problems. In Puppy...
XNView (from XnView-1.70-patched-i486-slxr.pet): No.
GIMP (from gimp-2.6.8-sfs3.sfs): No.
OpenOffice (from openoffice3.2-sfs3.sfs) Yes - after insisting that my installed JRE was 'defective.' :shock:
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#21 Post by Flash »

LibreOffice doesn't seem to be anywhere in Racy Puppy's PPM. Where can I find it? (I see that I haven't said what Puppy I'm using. Sorry, I thought I'd put that in my first post. :oops: )

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#22 Post by Semme »

Not IM?... Really!
Attachments
wmf_solution.jpg
http://murga-linux.com/puppy/viewtopic.php?p=599780#599780
(41.65 KiB) Downloaded 671 times

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#23 Post by vovchik »

Dear puppians,

I think some of us have been barking up the wrong tree (pardon the pun) in this discussion of wmf format. Many GTK programs (e.g. gqview and viewnior) can display wmf just fine. If they do not, it means that your GTK setup is missing gdk-pixbuf.loaders that are used by gdk_pixbuf. Examine the following file in /etc/gtk-2.0:

Code: Select all

gdk-pixbuf.loaders
To display wmf, you need the following entry, or something similar:

Code: Select all

"/usr/lib/gtk-2.0/2.10.0/loaders/io-wmf.so"
"wmf" 0 "gtk20" "Windows Metafile"
"image/x-wmf" ""
"wmf" "apm" ""
"\327\315\306\232" "" 100
"\001" "" 100
in that file. In addition, you will need to have the following file present on your system:

Code: Select all

/usr/lib/gtk-2.0/2.10.0/loaders/io-wmf.so
I have attached mine from Lucid. You might also need libwmf.

With kind regards,
vovchik

PS. I also have a similar entry for OSX icns format and for Photoshop psd, and quite a few more, so I can view/process quite a few image file types using standard GTK image apps. Even gtkdialog can display wmf within a <pixbuf></pixbuf>, provided you have the loader.

PPS. If the loader is set up properly, ROX-Filer will also show wmf thumbnails in icon view :)
Attachments
wmf.tar.gz
(16.22 KiB) Downloaded 193 times

User avatar
kooliepup
Posts: 292
Joined: Sat 14 Jan 2012, 03:40
Location: Victoria, Australia

#24 Post by kooliepup »

@Semme,

Yes, I was surprised that IM/GM didn't open it.
I really expected they would.

@vovchik,

Thanks for that.
I don't think I'll bother, 'tho.
I haven't had need to open a .wmf since I started using Linux (RedHat) in 1998, and very much doubt that I ever will now.

At best, .wmf was only ever just another Microsoft waste-of-space format.
There's no place like 127.0.0.1

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#25 Post by Semme »

Kooliepup,

Unless ldd /usr/bin/display returns any "not founds," there's no reason it shouldn't open with display [filename.wmf].

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#26 Post by Flash »

Semme, so ImageMagick worked for you? It would appear that my Racy Puppy is missing something. Which Puppy are you using? Or did you install the stuff that Vovchik talked about? I fooled around with /etc/gtk-2.0 for a while but didn't reboot after making changes. Maybe that's why it didn't work for me. Where can I find libwmf and where would I put it?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#27 Post by Semme »

Since you're referencing Racy, I think v6.6.1-10 is the pkg it's pacman should've listed.

From you, same as above.. let's see this output from a shell: ldd /usr/bin/display

User avatar
kooliepup
Posts: 292
Joined: Sat 14 Jan 2012, 03:40
Location: Victoria, Australia

#28 Post by kooliepup »

This is what I got.

# display ADV003.wmf
ERROR: font.c (1334): wmf_ipa_font_map: failed to load *any* font!
display: failed to scan file `ADV003.wmf' @ error/wmf.c/ReadWMFImage/186.
#

I wasn't interested in pursuing it as I don't have any need for .wmf.

What is the fix for it?
There's no place like 127.0.0.1

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#29 Post by Semme »

Who knows? Maybe you're missing what's described here? Mismatched pets? Version bug? I don't know....

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#30 Post by Flash »

Semme wrote:Since you're referencing Racy, I think v6.6.1-10 is the pkg it's pacman should've listed.
Nope, 6.6.2-6-w5
From you, same as above.. let's see this output from a shell: ldd /usr/bin/display

Code: Select all

# ldd /usr/bin/display
/usr/bin/display: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libMagickCore.so.3)
	linux-gate.so.1 =>  (0xffffe000)
	libMagickCore.so.3 => /usr/lib/libMagickCore.so.3 (0xb73a8000)
	libMagickWand.so.3 => /usr/lib/libMagickWand.so.3 (0xb72a7000)
	liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb727c000)
	libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb722c000)
	libc.so.6 => /lib/libc.so.6 (0xb70ec000)
	libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb70ab000)
	libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0xb707e000)
	libXext.so.6 => /usr/X11R7/lib/libXext.so.6 (0xb7071000)
	libXt.so.6 => /usr/X11R7/lib/libXt.so.6 (0xb702e000)
	librsvg-2.so.2 => /usr/lib/librsvg-2.so.2 (0xb7004000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6ffa000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6fde000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6ef5000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6ec2000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6ead000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb6dff000)
	libresolv.so.2 => /lib/libresolv.so.2 (0xb6dea000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6d6b000)
	libpixman-1.so.0 => /usr/X11R7/lib/libpixman-1.so.0 (0xb6d1b000)
	libfontconfig.so.1 => /usr/X11R7/lib/libfontconfig.so.1 (0xb6cf3000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6c80000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6c62000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c43000)
	libXrender.so.1 => /usr/X11R7/lib/libXrender.so.1 (0xb6c3b000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6c14000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb6c11000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6c0d000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6b48000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb6a51000)
	libz.so.1 => /lib/libz.so.1 (0xb6a3f000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb6a28000)
	libltdl.so.7 => /usr/lib/libltdl.so.7 (0xb6a21000)
	libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb6a1a000)
	libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb6a05000)
	libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0xb6905000)
	libxcb.so.1 => /usr/X11R7/lib/libxcb.so.1 (0xb68f0000)
	libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb68ed000)
	libdl.so.2 => /lib/libdl.so.2 (0xb68e9000)
	libgomp.so.1 => /usr/lib/libgomp.so.1 (0xb68e2000)
	librt.so.1 => /lib/librt.so.1 (0xb68d9000)
	libm.so.6 => /lib/libm.so.6 (0xb68b1000)
	/lib/ld-linux.so.2 (0xb778f000)
	libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb68ac000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb689e000)
	libuuid.so.1 => /lib/libuuid.so.1 (0xb689a000

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#31 Post by Semme »

Hey Flash, I've seen Vovchiks`post'n it appears you're :wink: on your way..

If you or anyone else ever needs IM, instructions that follow'll do it.

Open ppm'n tick Woof'n all Ubuntu repos- close'n open again.

Install:
  • imagemagick+deps
  • libmagickcore2-extra+deps
  • libwmf0+deps (first one)
  • libwmf-bin (possibly)
Extract this to /usr/local/bin and set the run action.
Attachments
wmf_open.sh.gz
(55 Bytes) Downloaded 128 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#32 Post by Flash »

Yes, vovchik solved the problem here.

Thanks, everyone, for your help. :)

Post Reply