Re: Does anyone have EXMH running on f9? (again)

"Kevin Oberman" <[email protected]>
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
> From: Robert Elz <[email protected]>
> Date: Tue, 09 Dec 2008 14:50:54 +0700
> Sender: [email protected]
> 
>     Date:        Mon, 08 Dec 2008 17:36:14 -0500
>     From:        [email protected]
>     Message-ID:  <[email protected]>
> 
>   | >     image/gif; /usr/X11R6/bin/xv %s ";
>   | >     image/jpeg; /usr/X11R6/bin/xv "%s";
>   | 
>   | Try this instead:
>   | 
>   | image/gif: /usr/X11R6/bin/xv -
>   | 
>   | exmh feeds the image to the program on stdin.
> 
> That would probably work, but so would the original if the extraneous
> quotes were removed...
> 
> What I use (not on Linux, of any vintage, but I really doubt the OS
> matters at all here, other than in what it distributes in its default
> mailcap file) ...
> 
> image/gif; xv %s
> image/jpeg; xv %s
> 
> (and a bunch of other image formats).  You could also use ImageMagick's
> display program, or the equivalent from any of the many other graphics
> utilities - using a browser (firefox or any other) to display an
> image sure seems like overkill though!
> 
> There's no need to include the path to xv (unless you think you might
> have several) if you can run xv from the command line of a shell, it
> will work from wish (ie: from exmh) as well.  And you don't need quotes,
> even if in general quoting args is a good idea, again, we know with exmh
> what format the arg is going to be /tmp/exmh.n.m... - it contains nothing
> that is ever going to need quoting, by avoiding quotes we also avoid having
> to learn what is the correct way to quote something in a mailcap file as used
> by exmh...

With due regard to xv, a nice, pioneering tool, I recommend using
display(1) from ImageMagick. I find it nicer than xv for lots of reasons
and I can customize the command to display the image resized down so
that it always fits on my screen.

My mailcap entry is "image/*; /usr/local/bin/display -resize 1270x965\\\> %s"
for my 1280x1024 system. The image is displayed at its real size unless
that exceeds the size of the available space and then it is reduced,
while maintaining aspect ratio, to fit in the specified area.

display(1) has a whole raft of capabilities to do  editing on an
image, but it's the way it can quickly and simply display an image that
I like.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [email protected]			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751

_______________________________________________
Exmh-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-users
signature.asc (application/pgp-signature, 224 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002

iD8DBQFJPqVqkn3rs5h7N1ERAtH3AKCb4g4Zc6v8bJM9bVTkhwQ0/Jz6FwCeP97n
C8BO2Pg+9rwxoC2SwLdDc7w=
=I1Av
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.