I have installed aview
the ASCII art image viewer with:
sudo apt-get install aview
But now when I run it with:
aview /path/to/image.extension
I get this:
Invalid magic-not p?m family format
I have tried getting this to work with the following image formats so far, and still the same output: png
, jpg
, and bmp
.
Why is this happening? And how do I fix this, or use aview
correctly if I am using it wrong?
OS Information:
Description: Ubuntu 14.10
Release: 14.10
Package Information:
aview:
Installed: 1.3.0rc1-9
Candidate: 1.3.0rc1-9
Version table:
*** 1.3.0rc1-9 0
500 http://gb.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
100 /var/lib/dpkg/status
EDIT: apparently if you invoke the program as
asciiview
instead ofaview
, it will automagically do the file conversion for youOriginal answer:
The
p?m
refers to the libpnm family of "lowest common denominator" image files, includingpbm
andpgm
. If you convert your image to one of those formats, for example using theconvert
tool from theimagemagick
package(or using
gimp
if you prefer) it should work, e.g.I typically use pnm with aview. You can convert to pnm with Gimp also.