File Formats: Why we use certain ones and not others

Archives for ships and fleets. 'nuff said. Most of the ships here are very very old and will not work in current versions of BSF or SM. You have been warned!

Moderators: th15, Moderators

Locked
Danny420Dale
Vice Admiral
Vice Admiral
Posts: 1344
Joined: Sat Sep 22, 2007 2:28 pm

File Formats: Why we use certain ones and not others

Post by Danny420Dale »

Repost from Stardestroyer.net.
Einhander Sn0m4n wrote:Sample image is a 820x2250 (aka Very Large!) schematic of a thermonuclear railgun projectile, which, in the BMP file format, weighs 5.28MB on disk. This image was chosen to be representative of the output of an advanced MSPaint user in making a starship design. There are gradients and subtle color variations present within the schematic which are not present in the default Paint palette, as you can see. Most ship designers stick to the default Paint palette, which I suspect would give GIF an edge in this test.


The purpose of this experiment is to show which is the best file format to save a schematic of this type through a combination of file size, fidelity in rendition, and ease of data repair.


Schematic saved in MSPaint; default compression JPEG: 94kb; data damage apparent in form of smeared or blurry lines, edges, and fonts.

Schematic saved in Irfanview; default compression (85%) JPEG: 94kb; data damage slightly more visible.

Schematic saved in MSPaint; default compression GIF: 63kb; MASSIVE DAMAGE extremely obvious in the form of color dithering over very nearly the entirety of the schematic! File size is small for an image this size.

Schematic saved in Irfanview; default compression (85%) GIF: 139kb :wtf: Data damage in form of color inaccuracy present, readily seen in the gray gradients. Large file size!

Schematic saved in Irfanview, default compression factor (7) PNG: 26kb! No data damage visible at all due to lossless format. File size is clearly the smallest by a factor of 2.6 to its nearest GIF competition and nearly 4 against the JPEGs.
User avatar
Aralonia
Butt Admiral
Butt Admiral
Posts: 922
Joined: Sun Oct 14, 2007 1:27 am
Location: New Saris, Northern Aralonia
Contact:

Post by Aralonia »

Go on, post a .PNG file of a photograph
DPUO wrote:<+AirHippo> Funnily enough, folks who abide by the law and try to make something of their lives don't appreciate the rich kids of rich parents getting away with murder and skimming through life.
Danny420Dale
Vice Admiral
Vice Admiral
Posts: 1344
Joined: Sat Sep 22, 2007 2:28 pm

Post by Danny420Dale »

For photos, yes, the JPEG file format is optimized. This MSPaint weapon schematic is a different case entirely, being neatly at the other end of the range of scenarios with its hard edges and relatively simple coloring.

However, a BSF screenshot can be done with a PNG acceptably because it most likely doesn't have nineteen billion colors like a photo usually does, and the antialiasing isn't severe enough to cause color multiplication over every last tiny detail like a photo. I'd imagine a BSF screenie falls in between the two extreme scenarios but closer to the MSPainted schematic. This is why JPEG causes significant, irreversible, and highly visible damage for a gain in filesize efficiency small enough to be debatable.
Master Chief
Vice Admiral
Vice Admiral
Posts: 1235
Joined: Wed Jan 02, 2008 4:27 pm
Location: Elysium

Post by Master Chief »

Since Danny already has given us a perfectly decent explanation as to which file format to use, I'll just cut this short:

Use .png files for screenshotting, keep away from ImageShack, and allow us to preserve the sanities we have been attempting to preserve for a really long time already.
[b]GONE UNTIL FURTHER NOTICE[/b]
Danny420Dale
Vice Admiral
Vice Admiral
Posts: 1344
Joined: Sat Sep 22, 2007 2:28 pm

Post by Danny420Dale »

Master Chief wrote:keep away from ImageShack
Yep.
Smut
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 20
Joined: Sat Dec 13, 2008 11:18 pm

Post by Smut »

Photobucket is so much easier to use, and it posts full size images.
Swamp Fox
Captain
Captain
Posts: 342
Joined: Wed May 14, 2008 7:00 am
Location: Tellus Tertius

Post by Swamp Fox »

Photobucket is so much easier to use, and it posts full size images.
Imageshack posts full-sized images, it's just frustrating to use and rather slow.
"Okay. I'm gonna get your money for ya. But if you don't get the President of the United States on that phone, you know what's gonna happen to you?"
"What?!"
"You're gonna have to answer to the Coca Cola company."
Hege
Commander
Commander
Posts: 170
Joined: Thu Feb 07, 2008 7:56 pm

Post by Hege »

Swamp Fox wrote:
Photobucket is so much easier to use, and it posts full size images.
Imageshack posts full-sized images, it's just frustrating to use and rather slow.
The thing with imageshack is that people don't usualy see the hidden direct link option on the bottom which makes the image viewing easier for others.

I think I should start listing some image hosting sites at some point and make little guides using them.
[img]http://i35.tinypic.com/ddoxt0.gif[/img]
Slayer0019
Commodore
Commodore
Posts: 535
Joined: Mon Jul 21, 2008 1:04 pm
Location: CT, America

Post by Slayer0019 »

I wrote: Irfanview can open every file type known to man, and several known to dolphin. Paint.NET is what happened when Photoshop knocked up MS Paint and sent the baby to live with GIMP.
Got Steam?
Join the official BSF Steam group today!
Sign up [url=http://steamcommunity.com/groups/wyrdysm]here![/url]

[img]http://i192.photobucket.com/albums/z148/JohnDG/sig-1.png[/img]
Locked