Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / ASCII converter

Author
Message
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 01:27 Edited at: 25th Jul 2008 02:21




ASCII converter is an application that will convert images into ASCII art. I started this project this morning cause I was bored, it seemed fun, and Id been toying with the idea of making an ascii converter for awhile.

So, ill post some screen shots of ASCII'ified images. Everything is working pretty well at this point, just need to fix up one small glitch, and then make the thing user friendly.

This is the first successful test I had

However, it lacked that ASCII feel, and so i changed it to this

This was pretty good. Next comes color

Here is a before and after picture. It might be my favorite one.

This is kinda cool. Durring the Diablo 3 trailer, I grabbed an image, and stuck it in the converter on a good quality setting, I think it came out great.


By the way, the quality setting. The lower it is, technically, the better. Its pretty much the space between figures. however, if its to low, its hard to tell its ASCII art...

EDIT:
here are some more shots.
Here is the link to the real joker image



This will be free... and it should be done soon.
What do you guys think?http://www.jeffpidgeon.com/uploaded_images/joker-740320.jpg
And here he is after the operation!

Here is another before and after picture.



This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
Deathead
17
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 25th Jul 2008 02:33
Awesome. Hard to see the Diablo one though.


Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 25th Jul 2008 02:35 Edited at: 25th Jul 2008 02:36
Wow nice . Would it export to a text file?

flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 02:47 Edited at: 25th Jul 2008 05:34
Deathhead:
Thanks man. Yea, Diablo is dark to begin with, and the image was bigger than that anyway, so the darkness and the size make it a bit tough.

Sixty Squares:
WOA! Why didnt I think of that?! That shall be my next step. Only thing is I dont think a txt file supports color, but what ever.


Alright. So. I think the next step is an export feature...

EDIT:
early export stuff. Its not really that hard, but it cant have color, and the more complex images really rely on the color to make it clear. Ill see what i can do, but for now, have a smiley face!



EDIT2:
Okay. It seems that there is a slight issue. I know what is though, and so it should just involve coding an exception. But, space keys just get skipped, so things appear to be closer than they really are... Look at the text on the top of this one



EDIT3:
Some times i think I edit these to much, but I think its better to keep you guys updated (even if it is updates every 5 minutes)

Anyway, Dont know if you noticed, but in that last code snippet, the shading doesnt really show up. That is a problem. So, i concluded that my characters were getting assigned slightly off or somthing, or wernt getting assigned correctly. Whatever it was, im working on it. Now the shading shows up, but, the left most part of the circle is not shaded in...


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/

Attachments

Login to view attachments
Papa Stiffy
17
Years of Service
User Offline
Joined: 22nd Sep 2007
Location:
Posted: 25th Jul 2008 05:34 Edited at: 25th Jul 2008 05:40
Very neat idea, ive never seen somthing like this! It seems to work very well, my favorite was the one of the joker. It came out very well.

Got some time to kill...? http://www.TheFlashArena.com
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 05:38 Edited at: 25th Jul 2008 05:42
Thanks papa stiffy. The photo ones will really only look good if theres color. That is some thing im TRYING to fix, but its turning out to be semi difficult

as for my last edit, the bomb looks like this, which is not cool... at all.



ha, you said you liked the Joker, and then made me do this for his background



EDIT:
agian....

wow. ha, this is most certainly NOT correct for the bomb






This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
Papa Stiffy
17
Years of Service
User Offline
Joined: 22nd Sep 2007
Location:
Posted: 25th Jul 2008 05:41
hahaha is that a floating blue elephant? It's a very nice touch underneath the joker. Really brings out his badass side... lol

Got some time to kill...? http://www.TheFlashArena.com
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 05:48 Edited at: 25th Jul 2008 05:54
yes it is. Its Genesh! its hard to see, but hes holding a remote in one hand, and a bowl of food in the other.

If anyone has anything that they would like to be ASCII'ified, just post it here, and i shall post back ASAP

*btw, i removed the second joker image, because its attached to my second post, and I didnt want to have to to to to many images just on the screen at once (although im sure there going to be a lot anyway)

EDIT:

okay, this is pretty good, time to test with more images... and, it will look better in the right font.



It will look better in a font like Courier New... this is because in that font, every character takes up the same amount of space, but that isnt the case for all fonts. When it isnt the case, things get messy....

Im looking that the options and i dont see a font thing on this site, which sticks.


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 25th Jul 2008 10:35
If you want color exported, you could make your own format defining the colors and such. But it won't be readable from the text file then.


Could a Moderator rename me to "Silvester"?(without the Quotes)
Eevil Weevil
17
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 25th Jul 2008 11:30
If you want equal character sizes in the .txt document, in MS Notepad, go to Format -> Font and select 'Courier New' on the Font select list.

Impossible? Anything is impossible. 48'6F'77'20'64'61'72'65'20'79'6F'75'20'77'6F'72'6B'20'6F'75'74'20'6D'79'20'73'69'67'21

flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 19:18
Hmm. thanks for the advice guys. Ill look into my own file format. Only thing with that, is that it when you try and bring it any were (like this forum), the color cant and wont show up.


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 25th Jul 2008 20:06
That is a really cool effect and would make for some interesting screen shots behind Text adventures. To be true ascii art, though, each character needs to be on its own space (fixed-width), and the shape of the pixels under that "square" determine which character gets used.

It looks from some of those pictures that a lot of characters are random, overlapping, and just matching a pixel color. Or do you have some sort of pattern matching?

Again it's really cool!

I'm not a real programmer but I play one with DBPro!
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Jul 2008 20:31
Tiresius:
Well, there is a an algorithim to match the right characters to certain spots, but on the more complex images (photos) , it doesnt really work to well.

I know what you mean about try ascii art though, i can set it to be like that. Observe.



The method I use to do this is actually pretty simple. Pretty much, you convert the image to grey scale and then pixelate it. Then you do the same thing for all the characters you want to use. Once the image is done with the pixillating and the grey scaling, it compares each pixels (or box) grey scale value and tries to match them to the best match in greyscale with the characters.
It works well, but as i said, the more complex images make it go nuts.


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-30 02:30:23
Your offset time is: 2024-09-30 02:30:23