Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
image2ansi [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1500
Location: KUUSANKOSKI, Finland

PostPosted: Wed Mar 31, 2010 5:20 pm    Post subject: image2ansi [SOLVED] Reply with quote

As topic says, I'm looking for a tool/utility to convert images to ANSI graphics.
All I could find was ppm2ansi and it has some limits.
I'm just asking if any of you know better alternative?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...


Last edited by Zucca on Fri Apr 02, 2010 10:05 am; edited 1 time in total
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 675

PostPosted: Wed Mar 31, 2010 6:44 pm    Post subject: Reply with quote

libcaca
aalib
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1500
Location: KUUSANKOSKI, Finland

PostPosted: Thu Apr 01, 2010 8:49 am    Post subject: Reply with quote

Are there any utilities that use those libs to convert images to ANSI graphics?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Apr 01, 2010 2:55 pm    Post subject: Reply with quote

The gimp has an aalib plugin.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Thu Apr 01, 2010 8:27 pm    Post subject: Reply with quote

Zucca wrote:
Are there any utilities that use those libs to convert images to ANSI graphics?

Yes, apps to do it get installed with the libs.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1500
Location: KUUSANKOSKI, Finland

PostPosted: Thu Apr 01, 2010 9:39 pm    Post subject: Reply with quote

I'd like to see a program that uses caca to convert images to ANSI. :\
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
one_and_only
Apprentice
Apprentice


Joined: 13 May 2007
Posts: 250
Location: PL/Krakow

PostPosted: Fri Apr 02, 2010 7:52 am    Post subject: Reply with quote

img2txt, part of libcaca installation, build with imlib USE to support other than BMP format:
Code:

img2txt --help
Usage: img2txt [OPTIONS]... <IMAGE>
Convert IMAGE to any text based available format.
Example : img2txt -w 80 -f ansi ./caca.png

Options:
  -h, --help                    This help
  -v, --version                 Version of the program
  -W, --width=WIDTH             Width of resulting image
  -H, --height=HEIGHT           Height of resulting image
  -x, --font-width=WIDTH                Width of output font
  -y, --font-height=HEIGHT              Height of output font
  -b, --brightness=BRIGHTNESS   Brightness of resulting image
  -c, --contrast=CONTRAST       Contrast of resulting image
  -g, --gamma=GAMMA             Gamma of resulting image
  -d, --dither=DITHER           Dithering algorithm to use :
                        none: no dithering
                        ordered2: 2x2 ordered dithering
                        ordered4: 4x4 ordered dithering
                        ordered8: 8x8 ordered dithering
                        random: random dithering
                        fstein: Floyd-Steinberg dithering
  -f, --format=FORMAT           Format of the resulting image :
                        caca: native libcaca format
                        ansi: ANSI
                        utf8: UTF-8 with ANSI escape codes
                        utf8cr: UTF-8 with ANSI escape codes and MS-DOS \r
                        html: HTML
                        html3: backwards-compatible HTML
                        bbfr: BBCode (French)
                        irc: IRC with mIRC colours
                        ps: PostScript document
                        svg: SVG vector image
                        tga: TGA image
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1500
Location: KUUSANKOSKI, Finland

PostPosted: Fri Apr 02, 2010 10:04 am    Post subject: Reply with quote

Thank you! This was just the thing I was looking for.
:!:
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 210
Location: Utility Muffin Research Kitchen

PostPosted: Sun Jun 13, 2010 11:17 am    Post subject: Reply with quote

JavE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum