Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 14 Sep 2014, 22:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to open .wmf image files in Puppy? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Author Message
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11060
Location: Arizona USA

PostPosted: Wed 25 Jan 2012, 23:04    Post subject:  How to open .wmf image files in Puppy? (Solved)  

I have an old CD with thousands of .wmf (NOT wtf) "clip art" image files. It comes with a program to install in Windows that can open the files, but of course I'd like to open them in Puppy. MTpaint won't do it. Is there a way?
Last edited by Flash on Mon 06 Feb 2012, 11:20; edited 1 time in total
Back to top
View user's profile Send private message 
maik.murks


Joined: 28 Mar 2011
Posts: 331
Location: at home, at work or on holidays

PostPosted: Thu 26 Jan 2012, 01:54    Post subject: Re: How to open .wmf image files in Puppy?  

Flash wrote:
I have an old CD with thousands of .wmf (NOT wtf) "clip art" image files. It comes with a program to install in Windows that can open the files, but of course I'd like to open them in Puppy. MTpaint won't do it. Is there a way?

Try GIMP

Cheers Wink

Maik.Murks
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11060
Location: Arizona USA

PostPosted: Thu 26 Jan 2012, 15:24    Post subject:  

Thanks. I see that a GIMP .pet is available in the package manager for my Puppy. I'll give it a try, soon as I can find the time. Smile
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3279
Location: Ontario

PostPosted: Thu 26 Jan 2012, 18:10    Post subject:  

Apparently it's a very popular format on Windows
But its vectors not bitmap.

Gimp needs

Code:
libwmf   -   Download   Library to convert wmf files   Optional (plugin won't be built)


If you have access to an Apple Mac computer there is
a great shareware program to do conversions

http://www.graphic-converter.net/

_______________________________________________
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11060
Location: Arizona USA

PostPosted: Thu 26 Jan 2012, 22:02    Post subject:  

What does that mean: "plugin won't be built"?
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1795
Location: Out wandering... maybe.

PostPosted: Thu 26 Jan 2012, 22:16    Post subject:  

I believe XNView (not sure about its successor, XNView MP, or the standalone converter xnconvert) supports WMFs. pemasu has been working on a few versions, such as this: http://www.murga-linux.com/puppy/viewtopic.php?t=52508

Imagemagick also appears to support WMF... if it's compiled with libwmf. ImageMagick: Formats I haven't really tried using it, though (as opposed to XNView). I'm sure there are others.

Last edited by Makoto on Thu 26 Jan 2012, 22:22; edited 1 time in total
Back to top
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 5746
Location: Kentucky

PostPosted: Thu 26 Jan 2012, 22:20    Post subject: Re: How to open .wmf image files in Puppy?  

Flash wrote:
I have an old CD with thousands of .wmf (NOT wtf) "clip art" image files. It comes with a program to install in Windows that can open the files, but of course I'd like to open them in Puppy. MTpaint won't do it. Is there a way?


What about Inkscape?
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11060
Location: Arizona USA

PostPosted: Fri 27 Jan 2012, 00:43    Post subject:  

Okay, I installed both Gimp and Inkscape from the PPM. Neither one would open a .wmf file. I found this in Wikipedia:
Quote:
Windows Metafile (WMF) is a graphics file format on Microsoft Windows systems, originally designed in the 1990s. Windows Metafiles are intended to be portable between applications and may contain both vector graphics and bitmap components....

WMF is a 16-bit format introduced in Windows 3.0. It is the native vector format for Microsoft Office applications such as Word, PowerPoint, and Publisher....

Alternative implementations
The WMF format was designed to be executed by the Windows GDI layer in order to restore the image, but as the WMF binary files contain the definition of the GDI graphic primitives that constitute this image, it is possible to design alternative libraries that render WMF binary files, or convert them into other graphic formats. For example, the [url=http://en.wikipedia.org/wiki/Batik_(software)]Batik[/url] library is able to render WMF files and convert them to their Scalable Vector Graphics (SVG) equivalent. The Vector Graphics package of the FreeHEP Java library allows the saving of Java2D drawings as EMF files. EMZ is an EMF file compressed with gzip.

I installed Imagemagick from PPM but it doesn't show in the Menu under Graphics as it's supposed to (neither did Gimp but it started when I entered gimp in a console. I couldn't start Imagemagick from console: 'command not found.')
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1795
Location: Out wandering... maybe.

PostPosted: Fri 27 Jan 2012, 01:57    Post subject:  

I don't think it has a direct 'imagemagick' command/binary (and it's a set of command-line tools, as far as I'm aware, so it won't appear in the Puppy menu).

An example from the Imagemagick homepage's page on installation, reformatted slightly. (ImageMagick: Install from Binary Distribution):

Quote:
Finally, to verify ImageMagick is working properly, type the following on the command line:

Code:
$ convert logo: logo.gif
$ identify logo.gif
$ display logo.gif


And, some (?) examples of usage:
ImageMagick v6 Examples

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Fri 27 Jan 2012, 05:01    Post subject:  

To get ImageMagick up, type display in console.
For GraphicsMagick, type gm, or gm display, or gmdisplay, depending on what version you use.

and use those words for file-manager associations.

_________________
There's no place like 127.0.0.1

Last edited by kooliepup on Sat 28 Jan 2012, 04:16; edited 1 time in total
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3862
Location: World_Hub

PostPosted: Fri 27 Jan 2012, 09:34    Post subject:  

Flash,

Since this sounds like a one time deal, I'd copy'm down'n issue a: mogrify -format [jpg, gif, whathaveyou] *.wmf

Besides the required deps I think you're gonna need the libmagickcore2-extra codecs.

Gif or jpg will both be smaller after conversion, png larger.

==

On the other side of the coin you could create a simple script, say wmf_open.sh:
Code:
#!/bin/sh
display "$@"


.. then go ahead'n set the run action by rt-clking one of your wmf's and drag'n the script in.

Works'a treat!
im-display_open-wmf.jpg
 Description   
 Filesize   40.38 KB
 Viewed   1074 Time(s)

im-display_open-wmf.jpg


Last edited by Semme on Tue 31 Jan 2012, 13:55; edited 3 times in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6432
Location: Auckland, New Zealand

PostPosted: Fri 27 Jan 2012, 10:02    Post subject:  

Flash wrote:
What does that mean: "plugin won't be built"?

Probably means "plugin won't be built by default". So the packager needs libwmf AND needs to specifically choose to build it.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11060
Location: Arizona USA

PostPosted: Fri 27 Jan 2012, 22:13    Post subject:  

I installed Imagemagick from Wary 5 PPM. Now I get an imagemagick GUI if I type "display" in a console but after that all I get are error messages when I try to get it to open a .wmf file:
Code:
# #!/bin/sh
# display *.wmf
display: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libMagickCore.so.3)
sh: wmf2eps: command not found
display: unable to open image `*.wmf':  @ error/blob.c/OpenBlob/2498.
display: delegate failed `"wmf2eps" -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1061.
display: unable to open image `/tmp/magick-XXXwjIRX':  @ error/blob.c/OpenBlob/2498.
display: unable to open file `/tmp/magick-XXXwjIRX':  @ error/constitute.c/ReadImage/571.
sh: wmf2eps: command not found
#

Code:
# mogrify # mogrify
mogrify: /usr/lib/libxml2.so.2: no version information available (required by /usr/lib/libMagickCore.so.3)
Version: ImageMagick 6.6.2-6 2010-11-07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

Usage: mogrify [options ...] file [ [options ...] file ...]

......a *long* list of options......

Semme wrote:
...Besides the required deps I think you're gonna need the libmagickcore2-extra codecs....
Is this the right one? Where do I put it?

I could download the latest binary release for Unix, but I don't know how to use it. Would it include everything I need to open wmf files?
Back to top
View user's profile Send private message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Sat 28 Jan 2012, 04:14    Post subject:  

You will only dig yourself deeper in the ditch doing that.

Start again with the proper .pets.

http://www.silverdollarsolutions.com/PuppyLinux/Dingo/ImageMagick-6.6.6-6-puppy-421.pet
Compiled for 421, but runs fine on 520 and Slacko.
You will need libiconv-2.4.0.

or if you want GraphicsMagick, which is a fork,
ftp://repository.tspu.edu.ru/puppyrus/users/nik/PuppyRus2/pet/GraphicsMagick-1.3.12.pet
Don't get ImageMagick from here.
Don't get GraphicsMagick from the other site.

You can install both, as they will happily cohabit.

Or if you don't want to stuff around with all that, post a .wmf file here and I will see what else opens it.

_________________
There's no place like 127.0.0.1
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3862
Location: World_Hub

PostPosted: Sat 28 Jan 2012, 07:37    Post subject:  

Aside from the deps that should've been pulled in, make sure libmagickcore2 and libmagickwand2 are there as well before run'n with Kooliepups`advice. That script'll work as soon as you get your deps in order. Wouldn't hurt Wink to state which system you're try'n to run this on either cause, based on your pkg selection, I'd guess one in the Lucid series..

As far as the extras pkg, this (yes, same as yours) should suffice.

Oh'n.. here's your libxml2.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0952s ][ Queries: 12 (0.0040s) ][ GZIP on ]