[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: viewing jpg files on text terminal



On Sun, February 01 at  2:18 PM EST
Brett Carrington <brettcar@segvio.org> wrote:

>On Sun, Feb 01, 2004 at 01:24:12PM -0500, Bijan Soleymani wrote:
>> Brett Carrington <brettcar@segvio.org> writes:
>> 
>> > On Sun, Feb 01, 2004 at 11:21:34AM -0600, Bill Kalebaugh wrote:
>> >> [snip lots of stuff about text consoles and jpegs] 
>> > So this got me thinking. Is there anything to display jpegs on a
>> > terminal as ASCII art? I think aalib can do this? The package
>> > `hasciicam` does something similar but I don't know if it can
>> > just simply display a jpeg to the console as ASCII art.
>> > Any ideas?
>> 
>> Yes, apt-cache show aview:
>> Description: A high quality ASCII art image viewer and video player
>>  aview is a high quality ASCII art image viewer and video player. It
>is>  especially useful with a text-based browser such as lynx, links or
>w3m.>  .
>>  It supports the pnm, pgm, pbm and ppm image formats, as well as
>>  the FLI and FLC video formats. It also supports output via stdio,
>>  (n)curses and slang and even has support for gpm.
>It doesn't support JPEG. What package would have something like
>jpg2p[ngbp]m?
>
imagemagick would do it with "convert", a part of the imagemagick
package.
slamson@callerio:/tmp$ cp /home/slamson/junk/071699s.jpg .
slamson@callerio:/tmp$ display 071699s.jpg 
slamson@callerio:/tmp$ convert 071699s.jpg 071699s.pnm 
slamson@callerio:/tmp$ display 071699s.pnm 
slamson@callerio:/tmp$ file 071699s.pnm 
071699s.pnm: Netpbm PPM "rawbits" image data
slamson@callerio:/tmp$ file 071699s.*   
071699s.jpg: JPEG image data, JFIF standard 1.02
071699s.pnm: Netpbm PPM "rawbits" image data

can't wait to see Wolf Blitzer as ascii art!
HTH


Shawn Lamson
shawn.lamson@verizon.net



Reply to: