PNG bug?

i use my own image format and the size of my images is much much smaller then png or gif or jpg or jpg2000.

[quote]i use my own image format and the size of my images is much much smaller then png or gif or jpg or jpg2000.
[/quote]
PNG can be very small. The PNGs from Photoshop aren’t.

If you really want small PNGs you have to use tools wich really try everything possible to make em (lossless) smaller.

I use PNGCrush and PNGOut. PNGOut takes ages but it can easily shrink an image from 68kb to 42kb.

why do u use png ?

Because I want to. If I make a very small game. 42kb alltogether (2 classes, 5 images and 3 sounds) then it won’t make any sense to even think about writing my own image format… the loader would be at least 3-4 times bigger than the “saved” space.

Sometimes a game has just some small graphics… then it just isn’t worth the pain.

@blahblahblahh

Yup, but ask an artist to produce that format and you’re
just going to get funny looks :(.

/me looks at blahblahblahh like a car (but not that fast) :o

Heh… seriously I don’t have a clue how to produce jpeg2000 images and I even don’t care much. However I’m looking forward the day it get’s “mature” :slight_smile:

Btw animated avatars are imo distracting. I would be nice if you change it, because I (usually) like reading your posts.

I think if you check the standard for still images is finished. There are other sections left to complete.

Check http://www.jpeg.org/JPEG2000.html
"JPEG 2000 refers to all parts of the standard: Part 1 (the core) is now published as an International Standard, five more parts (2-6) are complete or nearly complete, and four new parts (8-11) are under development… "

[quote]Yup, but ask an artist to produce that format and you’re just going to get funny looks :(.
[/quote]
So? The artist can just deliver a lossless image format - like PNG then you can convert to JPEG2000 for your own purposes… adjusting compression/quality tradeoffs as the project requires.

You can whip up a quick Java app with ImageIO to do the conversions, or use something like IrfanView or photoshop plugins etc.

I wonder how lossless lossless JPEG 2000 really is? What about simple rounding errors? Can you go in and out of JPEG2000 lossless 1000 times without accumulating rounding error? Theoretically regular JPEG should only lose information once - during the initial quantization phase… re-compressing with the same parameters should yield the exact same image because the quantization should do nothing if applied again… but in practice you will accumulate error due to rounding / smoothing, etc.

That’s why I like PNG - it doesn’t do anything with fractions that might lead to accidental loss.