Re: Image -> ASCII conversion : Help Wanted
From Florian Diedrich <flo...@t-online.de>
· alt.ascii-art
· 28 Oct 2000 20:31 · View full thread
· report
hi, i am a little bit tired already, so my reply will just be my tonight's "brain noise"... Trav schrieb: > > Greetings, > > I have a simple 3 colour image (white, blue, black) that is 2000x2000 > pixels in size. It is a > grid, where the gridlines are black, and squares are either filled with > white or blue. It is > derived from making a layer in a Photoshop image and then just copying > the contents of > the layer into a new file, so it can be any format that Photoshop 5.0 > can save in, in case the > file type is of great importance. > > What I want to do is to find out the information for each x,y coordinate > and import that > information into a spreadsheet, like Excel. For example, let's say that > the x,y = 200, 400 > (ie: the pixel is located 200 pixels across from the left, and 400 up > from the bottom of the > image). > > If that pixel is black, I want to be able to convert that information so > that I can read it in > Excel. I don't care whether it is defined as white = 1, black = 2, blue > =3, or whether it is > defined as white = FFFFFF, black = 000000, blue = 0000FF, or whether it > is defined as > white = 255-255-255, black = 0-0-0, blue = 0-0-255. or any symbols, so > long as I can differentiate between the tree tones. I can use Excel to > extract the > information I need. > > According to the Photoshop help files, the RAW format should be the one > I use, but I am > having problems with it. Every time I save the file in RAW format and > try to open it with Excel, I just get the same character (a "y" with two > dots above it (umlaut?)) about 200 times, with no spaces between > characters. the y with two dots above is no umlaut, it is a trema sort of thing (like the i with two dots above). the symbol you mean just happens to have the ascii-ordinal of 255 (or $FF), so could it be that these are just the "white" bytes (actually three of them for one pixel if your image is in 24bit truecolor ? try to convert it to a "palette indexed" color mode (i.e. 256 or 16 colors) and dump it then to a RAW file. Another thing might be that excel cannot handle characters with an ascii value lower that 32, since there are non-printable characters. try to set the colors in a manner so that all bytes on the output are between 32 and 128, that should work. > My next thought was that perhaps a program that took an image and > converted it to ASCII art might solve the problem. I've done a search, > but found nothing out there able to handle images that are 2000x2000 > pixels. > > Can anyone help me to locate software which might be of use? You can > either reply here, or directly to me via t.c...@landfood.unimelb.edu.au > > Thanks in advance, > > Trav.
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,55e241d2f20bfb2d X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2000-10-28 13:46:03 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!207.114.4.11!nntp.abs.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Florian Diedrich <flo...@t-online.de> Newsgroups: alt.ascii-art Subject: Re: Image -> ASCII conversion : Help Wanted Date: Sat, 28 Oct 2000 22:31:24 +0200 Organization: T-Online Lines: 66 Message-ID: <39F...@t-online.de> References: <39F...@landfood.NOSPAMTHANKS.unimelb.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 972765720 02 29440 64e6Z6XS1Ynpt 001028 20:42:00 X-Complaints-To: abu...@t-online.com X-Sender: 320...@t-dialin.net X-Mailer: Mozilla 4.7 [de] (Win95; I) X-Accept-Language: de Xref: supernews.google.com alt.ascii-art:2385
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
\\__ o
|\/ o\ o
> < o
|/\ __/
// |\__/,| (`\ |_ _ |.--.) ) ( T ) / (((^_(((/(((_/
, _ , ( o o ) /'` ' `'\ |'''''''| |\\'''//| """
,~~--~~-. + | |\ || |~ |`,/-\ *\_) \_) `-'
__
\ \ _ _
\**\ ___\/ \
X*#####*+^^\_\
o/\ \
\__\ .------------. |\\//\\//\\//| |//\\//\\//\\| |\\//\\//\\//| |//\\//\\//\\| '------------'
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2000 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.