You are not logged in.

#1 2010-01-21 23:30:23

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Post your nice ASCII pics!

http://lunatic.no/ol/img2aschtml.php online tool is addictive
Hope it'll be useful for someone wanting to have some ASCII pics
2010-01-21--1264114924_1280x800_scrot.png

Offline

#2 2010-01-22 00:29:08

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Post your nice ASCII pics!

You're right. It is addicting:

6676764052010012112641198841280x977scrot.png

2378794782010012112641199001280x977scrot.png

13647551992010012112641201871280x977scrot.png

Offline

#3 2010-01-22 01:39:15

joaca_rj
Member
From: Rio de Janeiro, Brazil
Registered: 2009-04-12
Posts: 76

Re: Post your nice ASCII pics!

I think finally I'll make myself an avatar!

Offline

#4 2010-01-22 02:17:55

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Post your nice ASCII pics!

@anonymous_user: Interesting choice of images...


.:[My Blog] || [My GitHub]:.

Offline

#5 2010-01-22 02:19:33

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: Post your nice ASCII pics!

Seeing Allan's avatar so big somehow made me want to check Samurai Champloo lol. Just checked the first episode and I liked it!

Offline

#6 2010-01-22 02:20:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Post your nice ASCII pics!

Ghost1227 wrote:

@anonymous_user: Interesting choice of images...

Is there any significance in the fact that you are at the top of that pile (he says studiously avoiding any references to trinities)?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2010-01-22 03:29:24

Daisuke_Aramaki
Member
From: ++49/711
Registered: 2008-10-06
Posts: 651
Website

Re: Post your nice ASCII pics!

willxtreme wrote:

Seeing Allan's avatar so big somehow made me want to check Samurai Champloo lol. Just checked the first episode and I liked it!

You've finally attained Nirvana! smile


"You know what I found? Right in the kernel, in the heart of the operating system, I found a developer's comment that said, `Does this belong here?`" -- Simon Lok about Linux kernel in 2005
Reflections on the Strange and the not so Strange
http://skinwalker.wordpress.com

Offline

#8 2010-01-22 18:25:00

jstadler
Member
From: Canada
Registered: 2010-01-04
Posts: 47

Re: Post your nice ASCII pics!

cool site
I did my avatar


robo_ascii.jpg

Offline

#9 2010-01-22 20:51:10

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: Post your nice ASCII pics!

willxtreme, that ASCII picture is very nice.

Offline

#10 2010-01-23 01:06:23

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Post your nice ASCII pics!

vM2J0cQ
Did you have a nice dream? [for those who knows GB wink ]

Last edited by sHyLoCk (2010-01-23 01:12:00)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#11 2010-01-23 03:15:31

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: Post your nice ASCII pics!

GETBACKERS!!!! I knew your avatar somehow looked familiar I've checked the first episode of that anime weeks ago and liked it too lol but I gotta see the rest of it as well as Samurai Champloo!

Offline

#12 2010-01-23 03:51:22

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Post your nice ASCII pics!

willxtreme wrote:

GETBACKERS!!!! I knew your avatar somehow looked familiar I've checked the first episode of that anime weeks ago and liked it too lol but I gotta see the rest of it as well as Samurai Champloo!

GB is a kickass show! Loved it as a kid and still rewatch sometimes. The fight scenes are very energetic and crazily addictive.

Last edited by sHyLoCk (2010-01-23 03:51:35)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#13 2010-01-23 05:40:56

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Post your nice ASCII pics!

Looks like the server is having trouble now. This is what happens when I try to convert an image to ascii:

Warning: fopen(tempfil.fil) [function.fopen]: failed to open stream: Permission denied in /var/www/lunatic.no/html/ol/img2aschtml.php on line 196

Warning: fputs(): supplied argument is not a valid stream resource in /var/www/lunatic.no/html/ol/img2aschtml.php on line 197

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/lunatic.no/html/ol/img2aschtml.php on line 198
Invalid imageformat!

How's my programming? Call 1-800-DEV-NULL

Offline

#14 2010-01-23 13:45:23

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: Post your nice ASCII pics!

Oh yeah it always does that if you try to open from online source. Your best bet is to upload from your HD smile

Offline

#15 2010-02-02 18:18:41

weakhead
Member
From: Poland
Registered: 2008-08-21
Posts: 341
Website

Re: Post your nice ASCII pics!

Nice tool!
99qd75.jpg

Offline

#16 2010-02-21 09:12:34

vampt3k
Member
From: Here
Registered: 2010-02-10
Posts: 21

Re: Post your nice ASCII pics!

edit

Last edited by vampt3k (2011-05-22 19:44:41)

Offline

#17 2010-02-21 19:52:49

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: Post your nice ASCII pics!

big_smile Awesome tool! Here's what came out for my avatar.
tM21sbQ
[edited for thumbnailness + another picture]
tM21scw <-- the fullview image looks a lot better than its thumbnail for this one (it's my recent wallpaper)

Last edited by ShadowKyogre (2010-02-21 20:06:11)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#18 2010-02-21 19:54:18

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Post your nice ASCII pics!

Everyone, please use thumbnails with links.

Offline

#19 2010-02-21 20:14:01

Neheb
Member
From: Norway
Registered: 2009-05-23
Posts: 39

Re: Post your nice ASCII pics!

vampt3k wrote:

This is really cool. Is there not an app that does this?

That way I can work offline?

Thanks.

aview seems to be able to do the same thing, testing it now (will edit when I have tested). you can get it from aur.

Aview works, but I cant seem to get it to use colours, so everything is black and white.

Last edited by Neheb (2010-02-21 20:28:12)

Offline

#20 2010-02-21 20:30:04

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: Post your nice ASCII pics!

vampt3k wrote:

This is really cool. Is there not an app that does this?

That way I can work offline?

Thanks.

Of course xyne have done something similar: http://xyne.archlinux.ca/info/tiv

Now its only a matter of time before this thread gets fully xyned. smile

Offline

#21 2010-02-26 08:58:14

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Post your nice ASCII pics!

libcaca comes with img2txt which does this kind of thing. But I guess each tool does it differently.

E.g. This is the output of img2txt for he Arch logo in the terminal...

                                                            
                             %t                             
                            88;8                            
                            tX S8                           
                           t S88:8                          
                          t8 8t@t@@                         
                         %X88:@;@.88                        
                        %8.8.8.8t@ 88                       
                       S8 8%888t8 8t88                      
                        8@@@ 8t8.8 8.8                      
                     8t8   S88888888 88                     
                    8:@88X8888888@8X8XX8@                   
                   X@8888 888888 8;888 888                  
                  888888888888 888888.@X @@                 
                 8@888888X:888@8X8t;8 @;8888                
                888888 ;8;@ ;%8X%%8 8X8@:;:tX               
               888888.8.@:t888:8@8 S%X %@@;8:S              
              8.88.@ S..%88X88@8:88:%tX8.8@88:8             
             t :8. ;@8.8;;        %@:X88 %t8.St@            
            t.@; 8.888:8@           tt8;888.@X8 8           
           t.X.88 XS8%8;            S8 X88:@8:8tXS          
          t8..@;8tX8 ;S8             t8@8:88 :%8.t@         
        8. ;8;8X:@@8@;8              t.SS8 tX;S888t;        
       X.88 8;tS@.;%88.              t8888;@:@@ 8.          
       tX t88888.888:;;8             t.8@ :S8.tX @%;8       
     8.8:@8:8;8@SS88@                  X8.8.8@ t@.;@8%@     
    %.;@:%@.88X                               8t%8;8;%t8    
   t.8t;@8                                         S8:%;88  
  t.X                                                 88X8@ 
 8                                                        8

Of course, the original is with colors

Last edited by lolilolicon (2010-02-26 08:59:06)


This silver ladybug at line 28...

Offline

#22 2010-02-26 13:25:25

Coacher
Guest

Re: Post your nice ASCII pics!

http://www.100mb.nl/
not truly ASCII art but also looking great to me.

#23 2012-07-20 13:31:46

Kenny1984
Member
Registered: 2012-07-20
Posts: 1

Re: Post your nice ASCII pics!

This morning i stumbled across this site. You can just upload an image and it looks pretty nice @ www.asciify.net
very nice ASCII image


moderator edit: Welcome to the forums. The image is too large. I have replaced it with a link for you. Please read Forum Etiquette: Pasting Pictures and Code and screenshot posting rules. Thanks. --fsckd

Last edited by fsckd (2012-07-20 16:23:30)

Offline

#24 2012-07-20 16:41:33

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: Post your nice ASCII pics!

vZXQyMQ
http://pastebin.com/b79cJV5f

Last edited by ivoarch (2012-07-20 16:45:17)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#25 2012-07-20 20:13:56

spookyln
Member
From: Czech Rep
Registered: 2009-02-10
Posts: 39

Re: Post your nice ASCII pics!

here is my old unmodified code.
I'm not ascii guru, excuse me for ugly dithering

#!/usr/bin/python
#encoding: utf-8

""" Konvertor obrázků na textový soubor nebo obrázek z textu
"""

try:
    from PIL import Image, ImageDraw, ImageFont
    
except ImportError:
    print("You need PIL module instaled.")
    raise SystemExit

DITHER = {'4col'  : '@#Hh',
          '8col'  : '@@##HHhh',
          '16col' : '####xxx===---...',
          '32col' : '@@@@####8888cccc****----....    ',
          '192col': '@@@@@@@@@########MMMMBBBBHHHHHAAAAA&&&&GGGhhhh999333XXXX22222555SSSSiiiiisssssrrrrrrr;;;;;;;;;::::::::,,,,,,,,.........         '
          }
COLORS = []
TEXTIMAGE = []

class Pic2txt(object):
    def __init__(self, filename, fontsize, chars, dither):
        
        self.filename = filename
        self.fontsize = fontsize
        self.nrchars  = chars
        self.dither   = dither
        
        self.font     = ImageFont.truetype('Terminus.ttf', self.fontsize)
        self.__conv2text()
        self.__text2pic()
        
    def __open_picture(self):
        ''' nahraje zvoleny obrázek '''
        
        image = Image.open(self.filename).convert('L')
        
        '''
        ted si muzu vybrat nejakou konverzi do sedych barev.
        muzu konvertovat tak ze nastavim konverzi na 'L'
        nebo pouzit nektery z RGB kanalu
        '''
        
        return image
    
    def __conv2text(self):
        ''' konvertuje obrazek na text '''
        
        pic           = self.__open_picture()
        width, height = pic.size
        image         = pic.load()
        skip          = int(width / self.nrchars)
        module = '192col'
        
        for y in xrange(0, height, skip):
            col = []
            txt = []
            for x in xrange(0, width, skip):
                value = int(image[x, y])
                col.append(value)
                txt.append(DITHER[module][value / (256 / len(DITHER[module]))])
                
            TEXTIMAGE.append(txt)
            COLORS.append(col)
        
    def __text2pic(self, normal=False, inverse=False):
        ''' konvertuje textpic na png obrazek '''
        
        ifont = ImageFont.truetype('Terminus.ttf', self.fontsize)
        
        if inverse:
            color = 'black'
        else:
            color = 'white'
            
        image = Image.new('L', (len(TEXTIMAGE[0]*self.fontsize), len(TEXTIMAGE)*self.fontsize), color)
        draw  = ImageDraw.Draw(image)
            
        for radka, line in enumerate(TEXTIMAGE):
            for sloupec, char in enumerate(''.join(line)):
                
                color = COLORS[radka][sloupec]
                
                if inverse:
                    color = 255 - color
                    
                if normal:
                    color = 'black'
                        
                draw.text((sloupec*self.fontsize, radka*self.fontsize), char, font=ifont, fill=color)
                
        image.save('pokus192col.png')
                
        
if __name__ == '__main__':
    app = Pic2txt('jolie.jpg', 6, 200, 4)

Offline

Board footer

Powered by FluxBB