Well, my .png decoder is starting to look like something. (look, it's interesting, I swear)

notfred

Lifer
Feb 12, 2001
38,241
4
0
Source PNG file

Output of my decoder

(both are enlaged 1600%)

Obviously, it's not entirely working yet, but this is the first time I've actually gotten any visual output from it. There's quite a bit of work that goes into an image decoder. I don't know why some of the pixels arent correct, that's the next thing to work on, but at least I'm getting output.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: Descartes
It might be more interesting if you provided details...

I don't know how many details I can provide without jsut posting the caode, but it's written in java. It jsut opens a png file and attempts to decode it and display it on the screen. It doesn't yet support all types of pngs, and it obviously, doesn't look quite right with the ones it's supposed to.

Anyway, I find it interesting... I guess no one else hopes to work for adobe on the photoshop team one day :p
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Originally posted by: notfred
Originally posted by: Descartes
It might be more interesting if you provided details...

I don't know how many details I can provide without jsut posting the caode, but it's written in java. It jsut opens a png file and attempts to decode it and display it on the screen. It doesn't yet support all types of pngs, and it obviously, doesn't look quite right with the ones it's supposed to.

Anyway, I find it interesting... I guess no one else hopes to work for adobe on the photoshop team one day :p

I know six photoshop technicians.

nik
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: notfred
Originally posted by: Descartes
It might be more interesting if you provided details...

I don't know how many details I can provide without jsut posting the caode, but it's written in java. It jsut opens a png file and attempts to decode it and display it on the screen. It doesn't yet support all types of pngs, and it obviously, doesn't look quite right with the ones it's supposed to.

Anyway, I find it interesting... I guess no one else hopes to work for adobe on the photoshop team one day :p

my roomate got an offer from adobe but he came to ms instead.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Originally posted by: notfred
Originally posted by: Descartes
It might be more interesting if you provided details...

I don't know how many details I can provide without jsut posting the caode, but it's written in java. It jsut opens a png file and attempts to decode it and display it on the screen. It doesn't yet support all types of pngs, and it obviously, doesn't look quite right with the ones it's supposed to.

Anyway, I find it interesting... I guess no one else hopes to work for adobe on the photoshop team one day :p

I'd always rather see code, but I understand I'm probably in the minority on that one. I have almost 0 interest in gfx coding, so I'm not entirely familiar with the details of decoding from a programmer's standpoint; that's what I meant when I said "details".

Either way, it seems you're having fun w/ it...
 

dawks

Diamond Member
Oct 9, 1999
5,071
2
81
Just curious, why are you making this? Just for the hell of it?

And pngs, are lossless correct? Its basically like zipping an image, and the image 'displayer' unzips it on the fly right?

I find that images that have alot of the same color (ie, white) can be compressed alot more using PNG then JPG.. plus theres no visual artifacts with PNG..
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: DaZ
Just curious, why are you making this? Just for the hell of it?

And pngs, are lossless correct? Its basically like zipping an image, and the image 'displayer' unzips it on the fly right?

I find that images that have alot of the same color (ie, white) can be compressed alot more using PNG then JPG.. plus theres no visual artifacts with PNG..

You're basically right. PNG is a lossless format that does both true color and indexed color images (and grayscale). The compression method is not exactly jsut a zipped iamge, but that's the basic idea, and it does use the zlib compression libraries.
 

dude8604

Platinum Member
Oct 3, 2001
2,680
0
0
Originally posted by: Descartes
Originally posted by: notfred
Originally posted by: Descartes
It might be more interesting if you provided details...

I don't know how many details I can provide without jsut posting the caode, but it's written in java. It jsut opens a png file and attempts to decode it and display it on the screen. It doesn't yet support all types of pngs, and it obviously, doesn't look quite right with the ones it's supposed to.

Anyway, I find it interesting... I guess no one else hopes to work for adobe on the photoshop team one day :p

I'd always rather see code, but I understand I'm probably in the minority on that one. I have almost 0 interest in gfx coding, so I'm not entirely familiar with the details of decoding from a programmer's standpoint; that's what I meant when I said "details".

Either way, it seems you're having fun w/ it...


I'd like to see the code too.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: DaZ
So what are you making a java png viewer for?

well, eventually I plan on having it do a lot more than jsut view png iamges (it will be an image editor) and I should be able to run it from a web page.

Also, cause I find it interesting :)