Closed Thread Icon

Topic awaiting preservation: ASCII to .gif Pages that link to <a href="https://ozoneasylum.com/backlink?for=12501" title="Pages that link to Topic awaiting preservation: ASCII to .gif" rel="nofollow" >Topic awaiting preservation: ASCII to .gif\

 
Author Thread
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 11-04-2002 01:30

I would like to be able to take data in ASCII and convert it to either a .gif .jpeg or .png format (preferably using PHP) but I don't seem to be turning any resources up that I can learn how to do that from.

If my question sounds naive or ignorant (either one matches in this case) I apologize but I've never even considered doing something like this before so I have no idea where to start.

Any links or shoves in the right direction are appreciated.

-Butcher-

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 02:43

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-04-2002 03:04

It probably wouldn't be too difficult to make a C++ program that turns it into BMP or something, and then you could open that in Photoshop and save it as a gif somehow...

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 11-04-2002 03:30

What kind of ascii data are you talking about?

If you have a list of coordinates and want to create a plot from them get a copy of gnuplot. You should be able to download the latest version from http://www.gnuplot.info/ .

gnuplot allows you to create graphs in several formats including .gif.


-- not necessarily stoned... just beautiful.



[This message has been edited by hyperbole (edited 11-04-2002).]

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-04-2002 04:43

What we're looking to do is be able to create an image map on a web page using JavaScript. Then we want to pass that data to a back-end script, preferably PHP, such that it can take the data and create a .gif or .jpg file which in turn can be converted into an icon file.

This effort is going to support a nifty icon generator tool for the GN *and* can probably help with the Asylum's new pixel people utility.

butcher and I are working together on this part of it.

. . : slicePuzzle

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-04-2002 04:56

...and I should clarify that we want to make this all automated so the resulting image can be emailed and/or downloaded shortly after its creation on the page.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-04-2002 06:24

Get me the minimal file format for gif files, and I could write a little C++ prog that does the trick.

I just need info, I assume it'd be something along the lines of

first 4 bytes: " GIF" (or something weird and more specific)
some random info like file size, image width, image height
1 byte: number of colors in pallette = n
n*3 bytes: rgb values for each color
width*height bytes: color indices

If anyone can figure out this information, writing the program shouldn't be all that difficult. I've done it with WAV and BMP files in the past. Thankfully, since we're *writing* gif files, and not *reading* them, we don't need to know all the possible complications a gif file may have. In fact, we could try saving a 1px wide gif in MS paint and looking at the file in a hex editor to see if we could figure it out.

*goes to try*

[edit: hmm, this looks a little difficult, but it's probably doable by comparing different similar gif files. I was almost right: the first 6 bytes are "GIF89a". I'll see what I can figure out.]

[edit2: oooh, photoshop gifs are *much* simpler. very small. I bet I can do this.]

[This message has been edited by Slime (edited 11-04-2002).]

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 11-04-2002 09:53

wooo. sounds interesting slime. id like to have a look at the sources if you are finished slime.

stinx
Bipolar (III) Inmate

From: London, UK
Insane since: Apr 2002

posted posted 11-04-2002 12:56

This link is great for image formats, even if it is years old... http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html

The gif format is pretty simple. I managed to swap colours by treating gif data as a string and changing certain characters - it's the data compression that got to me. Good luck!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 13:16

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-04-2002 14:48

InI: I'm sure no one is making extra work for themselves by ignoring you but it may be that all your ideas are getting lost in the various posts. Would it be possible to extract all your good stuff like this to one place where we could go and nose through it? I know it would be a valuable resource and it would save a lot of us loads of time. The FAQ is just waiting for this kind of thing (saving ideas, tips, code for getting lost in the rip tides of the Asylum is its raison d'&#234;tre) or you can put it up at Wapod - it doesn't really matter as long we have one place we can go and look for it. If you want a hand with putting stuff in the FAQ then let me know and I'll do what I can

___________________
Emps

FAQs: Emperor

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 14:59

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 11-04-2002 15:45

let me just make an off hand suggestion...
ini, perhaps the fact that anytime someone doesn't take your approach to something you throw a fit and insult people *might* just have something to do with why people tend not to fully read through all of your information?

just a thought....

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-04-2002 16:51

I'm sorry I even started down this road. I can't tell you how upset I am right now.

I don't care how brilliant anyone here is if working with them causes this sort of reaction. This is precisely why I usually keep my projects to myself because I HATE having to exert energy avoiding egotistical outbursts like that, it's like trying to learn a new language while walking through a mine field.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-04-2002 17:03
quote:
it's the 1000th time you geeks discard my opinion, later discover what I had suggested,
and claim it as yours and revolutionary.

I can take a lot of crap but this one has quite simply pushed me over the edge!!!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 11-04-2002 17:30

He's right this is bullshit.

A. I doubt everyone here reads every thread in every area of this board. If I don't have something to say on a subject or it seems like someone else has provided an answer my common technique is to generally just ignore the thread after a point.

B. It can be a serious pain in the ass to track down some old posts. Many times threads evolve into something having nothing to do with the orginal post so who knows where the answer might lie.

C. Haven't you noticed yet that people ask the same question over and over again? Jesus just last week someone asked how to do an image rollover in the DHTML forum. You don't see anyone else getting their panties in a bunch because they've answered the question over and over.

Finally I have no idea who's claiming your idea as their own but fucking grow up this is going to happen. It's happend to me, it's happened to max and I'm sure it's happened to slime and bugs not one else is throwing a fucking prepubescent tantrum about it.



.:[ Never resist a perfect moment ]:.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 18:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 11-04-2002 18:06
quote:
there is an obvious and hard to
repair mismatch between what you like and what I like.
Can you understand that instead of taking it personal



I think you need to take your own advice Ini.



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 18:09

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-04-2002 18:17

InI, where is this coming from? You really need to calm down.

Yes, sometimes you post things that don't get any replies. Sometimes it's because it goes over our heads, sometimes we're just not interested at the time. But that doesn't give you an excuse to get angry when people forget about specific things you've said in the past. If that happens, all you have to do is give a link to the old thread, or repost it again (because, yes, we all have to post the same things more than once). But blowing up at people like this isn't going to help *anyone*.

If you're contributing to the Asylum because you want recognition, then you need to find another reason to contribute. Besides, many times I've seen people compliment you for the java applets you've made. Recognition is great when you get it, but no one *deserves* it automatically, and many people who earn it never recieve it. This is a part of life. You can't get angry at people for not giving you the recognition you may deserve.

Just, man, if you think there's a problem, there are much better ways of dealing with it than you have done here. Please, calm down!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 18:18

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-04-2002 19:30

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Arthemis
Paranoid (IV) Inmate

From: Milky Way
Insane since: Nov 2001

posted posted 11-04-2002 22:14

I don't know, i read most of your shit, liked it (sometimes gasped) and still call it shit without trying to be offensive.

What is it with this place when people start being more like themselves? Bah... long live the asylum...

on the topic, i would recommend using the .XBM-generator or something

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 11-05-2002 03:22

Ok, I think everyone need go and read this right about now:
http://www.ozoneasylum.com/Forum1/HTML/005545.html

Bah... That ^^^ is meant to be the "asylum love" thread. Arr well.

[This message has been edited by Dracusis (edited 11-05-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-05-2002 03:31

Broken link? Deleted/locked/archived thread?

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 11-05-2002 05:28

Don't you just hate it when you get interested, lurk a thread, and then ini gets involved and throws a tantrum? Completely ruins a good thread that I may have had some chance of understanding.

I hate even more when folks gang up and beat some Asylumite to death so please don't mistake this post for that.

Actually, InI, the fact that people try to speak rationally to you instead of just verbalizing you to ribbons shows respect, a great deal more than most people have earned around here. The tantrums you throw out of pure ego would get inmates with less to offer beaten back to the stone age. But the tongues are bitten a bit, out of respect. So you really want to get your panties in a twist? Then take these negative posts here and multiply them by an abuse factor of ten to see what you more than likely deserve.

Jeepers.

Jason

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 11-05-2002 09:43

oh, come on, guys!

Don't do this... this what the artists do... don't fall into that trap..

come on... let's just for get about this..




Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 11-05-2002 09:54

ok, this what I was looking for:
http://www.ozoneasylum.com/Archives/Archive-000002/HTML/20021015-1-005457.html


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

Jestah
Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 11-05-2002 10:13

What do you guys say we get back on topic now?

-Jestah
Cell 277

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 11-05-2002 10:35

that's what I did!

read the link I posted-

see, that's the problem with you.. you never read the damn links I post... watch yo' damn back, Jest-Foo'!!


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-05-2002 12:47

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-05-2002 14:59

OK I think it best if we closed this down and started again here:
www.ozoneasylum.com/Forum12/HTML/001164.html

___________________
Emps

FAQs: Emperor

« BackwardsOnwards »

Show Forum Drop Down Menu