From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: [9fans] Need help on 'page' command
Date: Thu, 24 Jan 2002 01:11:38 -0500 [thread overview]
Message-ID: <20020124061141.50CA219A57@mail.cse.psu.edu> (raw)
> I tried to display what I suppose is a jpg file as follows:
>
> gs /n/cdb/JPEGS300/AACROCK1.JPG|page -V
> reading through graphics...
The stdout of gs is not a picture file - it's diagnostic stuff.
(The author was a little new to Unix when he started.)
This will confuse page, which will then fall to vestigial
code and invoke the old fb stuff, which is deprecated.
Around here, where legacy binaries still exist,
As secondary proof,
%% </dev/null gs > x
%% sed 5q x
Aladdin Ghostscript 6.01 (2000-03-17)
Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>
%% page -V < x
reading through graphics...
fb/cvt2pic: can't decode stdin
IN: Can't read header
...
%%
So you see, gs is not the easiest way to display a JPG.
Either use jpg, page, or read up on gs to see how to make
it produce a file, and then run page on that file. It's a
little intricate.
-rob
next reply other threads:[~2002-01-24 6:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-24 6:11 rob pike [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-24 3:35 Thomas West
2002-01-24 2:20 Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020124061141.50CA219A57@mail.cse.psu.edu \
--to=rob@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).