Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.