Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am simply trying to use aview to display a simple JPEG image using the terminal, however every time it returns this error:

Invalid magic-not p?m family format

It happens with other files of other formats too; I am not sure what the issue could be, and searching the error doesn't help much.

I am running Xubuntu 12.04 and using zsh as my shell.

share|improve this question

Just convert it to pgm.

convert file.jpg file.pgm

Of course convert must be installed.

share|improve this answer
Although this is a suitable workaround, this doesn't answer the question asked. – devnill Jan 8 '14 at 22:00

You could use asciiview command, from man aview:

aview can only show files in the PNM file format. But asciiview automatically converts the file formats to PNM (with extern programs like NetPBM and ImageMagic) and then runs aview.

So just use:

$ asciiview file.jpg

In case it doesn't work you might need to use:

$ sudo apt-get install imagemagick
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .