.PNG Interlaced? or NONE

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply

For .PNG saves, what do you have for your quality?

None
6
75%
Interlaced
2
25%
 
Total votes: 8

Message
Author
Lee_Hitsugaya
Regular
Posts: 115
Joined: Mon Apr 23, 2007 8:50 pm
Contact:

.PNG Interlaced? or NONE

#1 Post by Lee_Hitsugaya » Wed May 02, 2007 4:35 pm

What comes out with better quality. Speak your mind and help me decide.
in a perfect world those who can do it teach others how to do it. but were not in a perfect world. So were primarily stuck with teachers who don't kno jack.

Avatar: The Last Airbender Visual Novel forums

http://img509.imageshack.us/my.php?imag ... rekzs0.png

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#2 Post by PyTom » Wed May 02, 2007 5:14 pm

I would suggest no, unless you plan to use the images on the web or something. Ren'Py decodes the image until it's done, so the interlacing doesn't accomplish much... but it probably makes the image a bit larger, so there's a small downside to using interlacing.

BTW, I think it's inappropriate to conduct a poll on a technical issue like this. Polls work when you want to gauge the sense of the community. For a technical thing, it's best to listen to peoples advice, and make up your own mind.

If ten people come here and agree with me, and one person comes here and says that I'm wrong (say, because interlaced PNG is smaller... I don't know, I haven't actually done the experiments), and that person is factually right... well, listen to the one person who got it right, rather than the 11 that got it wrong.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: .PNG Interlaced? or NONE

#3 Post by Jake » Wed May 02, 2007 5:15 pm

Lee_Hitsugaya wrote:What comes out with better quality. Speak your mind and help me decide.
Neither.

Or rather, both. Interlacing is nothing to do with the image quality at all. PNG is a lossless format, so you'll get the same image regardless of what you choose here. The only thing that will affect your quality is what colour depth you choose - the higher the number of bits per pixel, the better (although computer monitors peak at 24/32bpp and the human eye can't tell the difference between all of those anyway).

What interlacing does is determine the order that the pixels are saved in the file. To give a simplified example:
Normally (non-interlaced) the pixels are just written into the file starting at the bottom left, proceeding along to the right until the end of the line is reached, then starting at the left one line up, proceeding to the right... and so on.
An interlaced image might store every fourth line in that manner, then go back and fill in every second line, then go back and fill in all the lines in-between.

The advantage to this being that if you only have the first quarter of the file, you can still reconstruct a reasonable approximation of the image because you have every fourth line and you can guess at what goes on the ones in between. It'll be low-res and blurry, but it'll be better than nothing. If you have only a quarter of the normal image, you have the bottom quarter of the file, which isn't normally so useful. This is most commonly used in web browsers to show in-progress versions of the file as the image is being downloaded; the browser will show the low-res blurry version, then fill in the details as it recieves them, making the image more and more high-res until it's all downloaded.

The disadvantage to interlacing is that the approach taken with PNG messes with the compression scheme, so interlaced PNG files usually aren't so small as the same image non-interlaced. So for purposes where the interlacing is useless anyway - for example game-making, where the file is loaded very quickly from the local HDD - it's probably best to save your files non-interlaced.
Server error: user 'Jake' not found

User avatar
Twar3Draconis
Regular
Posts: 129
Joined: Thu Apr 19, 2007 12:07 am
Location: Michigan, United States, Terra
Contact:

#4 Post by Twar3Draconis » Thu May 03, 2007 12:33 pm

Pretty much what everyone else said. For web-based items I use interlaced. For offline items I don't.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]