About the PNG Format

All development of pixel art and graphics
Post Reply
User avatar
bcs86
Novice
Novice
Posts: 259
Joined: Fri Feb 27, 2009 6:14 pm
Contact:

About the PNG Format

Post by bcs86 » Mon Feb 08, 2010 6:56 pm

[PNG Homepage]

I'm posting this because I think many people are not familiar with Portable Network Graphics and are therefore afraid of it.
The Mana World uses the Portable Networks Graphics format for all sprites.

One thing that I would like to make clear is that PNGs are lossless. They use zlib compression (like in gzip).
It will not mess up your image to compress it.

Another thing to make clear is that PNGs support full 24 and 32bit color. You will not lose colors upon saving.

PNG graphics can be optimized up to 256 colors, good for pixel art. It requires some tweaking to do losslessly,
but it saves space when you know how.

Unlike GIF, PNG has an entire alpha channel. Images can have areas that are partially see-through.

Fully compressed PNG files do not benefit any from being put in compressed archives. They go nicely in non-compressed tape archives (tar). You can mount tape archives and browse the images inside, or change the .tar suffix to .cbt for viewing in comic book readers.

The best speed to compression ratio is 6. PNGs that are fully compressed (9) are slower to unpack. I don't know how this affects gameplay. Nine is best for larger files that will take some time to display anyhow.

PNG is best for icons and sprites, not photos. It replaces the need for unanimated gif, and .bmp (don't rely on MSPaint for it's .png support though)

I hope this helps avert paranoia about the PNG format. I'll try to answer any questions if asked.
Last edited by bcs86 on Fri Mar 05, 2010 5:24 am, edited 1 time in total.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: About the PNG Format

Post by Jaxad0127 » Mon Feb 08, 2010 7:10 pm

I've made this a sticky. The platform (mana) supports many different formats, but TMW has chosen to only use PNG for world data (other formats are needed for other, special areas, like program icon). Other projects can do what they want, like use GIF or JPEG or whatever. But TMW will only accept PNG (except for those aforementioned special images).
Image
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: About the PNG Format

Post by Crush » Tue Feb 09, 2010 7:27 am

It was also suggested to use TGA for some images in the past. TGA supports everything PNG supports. The difference is that TGA files are not as small as PNG but it is considerably faster to unpack resulting in reduced load times on systems with slow CPUs.

But for TMW I would still advise to stick to a single image format to make life easier for contributors and maintainers.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
bcs86
Novice
Novice
Posts: 259
Joined: Fri Feb 27, 2009 6:14 pm
Contact:

Re: About the PNG Format

Post by bcs86 » Fri Mar 05, 2010 5:25 am

* Added information about compression in the 7th paragraph.
User avatar
Senretsu
Newly Registered User
Posts: 3
Joined: Mon May 31, 2010 6:31 pm
Location: Canada
Contact:

Re: About the PNG Format

Post by Senretsu » Mon Jun 21, 2010 4:45 am

I've relied heavily on Png's, and never been let down, for the better half of my spriting career.
Two thumbs up.
User avatar
New
Peon
Peon
Posts: 33
Joined: Thu Sep 29, 2011 4:17 am

Re: About the PNG Format

Post by New » Fri Oct 07, 2011 7:51 am

I love pixel art.
Mercy has been granted.
User avatar
Freeyorp101
TMW Adviser
TMW Adviser
Posts: 703
Joined: Tue Nov 04, 2008 10:17 am
Location: New Zealand

Re: About the PNG Format

Post by Freeyorp101 » Fri Oct 07, 2011 11:20 am

New wrote:I love pixel art.
You seriously bumped a year old thread just to say that?


---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
yubabax116
Novice
Novice
Posts: 268
Joined: Tue Apr 05, 2011 10:20 pm
Location: Elsewhere

Re: About the PNG Format

Post by yubabax116 » Fri Oct 07, 2011 2:36 pm

If you look at most of his posts he does it to many.
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
♩ ♪ ♫ ♬ ♭ ♮ ❤Quiet And Enj0:00Y The  Music ❤ ♩ ♪ ♫ ♬ ♭
Yubaba
Chicka-Maria
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
Post Reply