Sijun Forums Forum Index
Log in to check your private messages
My Profile Search Who's Online Member List FAQ Register Login Sijun Forums Forum Index

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Sijun Forums Forum Index >> Archive : Sep99 - Dec00
View previous topic :: View next topic  
Author   Topic : "File Format information"
Nex
member


Member #
Joined: 25 Mar 2000
Posts: 2086
Location: Austria

PostPosted: Wed May 17, 2000 2:32 pm     Reply with quote
Since I have been checking to find the best file format to store quick sketches I thought I would let you drink from my thurst quenching well of neverending wisdom and share:

The base picture was a (f**ed up) sketch I made from the Spooge-Demon-old-man-picture-thread.



gif 89a
(no error diffusion): 33,9 KB
gif 89a, interlaced
(no error diffusion ): 34,2 KB
jpg baseline compression
( 90% Quality): 81,9 KB
jpg baseline optimized compression
( 90% Quality): 72,6 KB
jpg progressive, 3 Level Compression
( 90% Quality): 71,1 KB
png: 67,9 KB
pcx: 156 KB
tif, LZW Compression: 97,2 KB
targa, 24 bit: 351 KB
targa, 16 bit: 234 KB
pixar: 353 KB
psd: 161 KB

So the winner is:...

GIF 89a hurray!!!

The sucker for storing sketches is: pixar *.pxr Format.

Thats it.

Flowers, donations and blood sacrifices will be appreciated


Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cos
member


Member #
Joined: 05 Mar 2000
Posts: 1332
Location: UK

PostPosted: Wed May 17, 2000 2:51 pm     Reply with quote
so why have I been using jpegs all this time? .....hmmmmmmm DOH! Thanx nex!
Back to top
View user's profile Send private message Send e-mail
synj
member


Member #
Joined: 02 Apr 2000
Posts: 1483
Location: San Diego

PostPosted: Wed May 17, 2000 2:57 pm     Reply with quote
yes, nex. i agree that GIFs are definately good if there is not alot of colors being used in the palette. thats how i am able to create such quick loading images at www.synj.net/seconds.htm

there is a bit more to it when it involves color, but i wont go into that part since we're talking about sketches

regards,
-synj www.synj.net

Back to top
View user's profile Send private message Send e-mail Visit poster's website
spooge demon
member


Member #
Joined: 15 Nov 1999
Posts: 1475
Location: Haiku, HI, USA

PostPosted: Wed May 17, 2000 3:16 pm     Reply with quote
Thanks nex for the grunt work. I agree with Synj. Try the same test with the photo. I did and the jpeg won.? Maybe I did something wrong...

i think jpgs were designed for photos and gifs are better for flat colors.
Back to top
View user's profile Send private message Visit poster's website
Cos
member


Member #
Joined: 05 Mar 2000
Posts: 1332
Location: UK

PostPosted: Wed May 17, 2000 3:22 pm     Reply with quote
I think jpeg's get like 5000 or something colours in them, and gifs get 256 max, so jpeg would definetely be better for photos. So why have you been using jpegs for your sketches cos? erm.......
Back to top
View user's profile Send private message Send e-mail
Nex
member


Member #
Joined: 25 Mar 2000
Posts: 2086
Location: Austria

PostPosted: Wed May 17, 2000 3:24 pm     Reply with quote
Yup, for full color jpg is smaller and a very good solution, for sketches (with only about 5 or 6 color [greytones maybe]) gifs are smaller. Depends on the pic very much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kos.mandis
member


Member #
Joined: 14 Nov 1999
Posts: 274
Location: in front of a pc

PostPosted: Wed May 17, 2000 3:27 pm     Reply with quote
I've found out that acdsee32 does a better job(!) (sizewise) when converting and image to a jpeg rather than save it as jpeg from photoshop...

(tested an image saved as jpeg from photoshop at 6/12 quality got 113 kbs whereas converting the psd to a jpeg with acdsee got it at 83kbs-at 50% quality)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frost
member


Member #
Joined: 12 Jan 2000
Posts: 2662
Location: Montr�al, Canada

PostPosted: Wed May 17, 2000 3:33 pm     Reply with quote
Gifs encode using a predefined color table of 8bits, meaning 256 colors max, while JPG works in 16777216 colors, or true color, where you have the equivalent of 3 8bit images, storing the RGB info of each pixel at 256 levels each (256^3). (1 pixel = 3 bytes in 24-bit, 1 pixel = 4 bytes in 32-bit)

Indexed color is different than true color in that each pixel is an index number corresponding to a preset RGB in the palette, instead of an independant color definition, so all pixels share the same predefined 256 (or less) colors.

Of course, GIF has been around since 1987 and uses some real nice LZ compression which is also conincidentally used in the ZIP file format to some extent (zip has improved the algos a lot over the years, while GIF stayed behind for compatibilities' sake).

How LZ (GIF) works is that it basically looks back into the file to see if it already encountered the upcoming series of pixels, and if a match already existed, it writes an index to the offset in the image where that string already existed, saving much space, especially in images with little color or huge blocks of uniform color.

JPG uses a block compression algo that I don't know about... but I know it compresses in CHUNKS, or blocks -- you can easily see them if you boost saturation of a JPG to 100%... you'll see block patterns appearing.

PNG works both in indexed mode and true color, so it natively supports both 256 color indexed images and true color (24-bit) images (+ alpha transparency for 32-bit images).

frost.

[This message has been edited by Frost (edited May 17, 2000).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cos
member


Member #
Joined: 05 Mar 2000
Posts: 1332
Location: UK

PostPosted: Wed May 17, 2000 3:38 pm     Reply with quote
Well I was quite close saying 5000... DOH!!
Back to top
View user's profile Send private message Send e-mail
Francis
member


Member #
Joined: 18 Mar 2000
Posts: 1155
Location: San Diego, CA

PostPosted: Wed May 17, 2000 4:28 pm     Reply with quote
Frost is deep in propellerhead country...

------------------
TeamGT Studios
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frost
member


Member #
Joined: 12 Jan 2000
Posts: 2662
Location: Montr�al, Canada

PostPosted: Wed May 17, 2000 4:34 pm     Reply with quote
Francis: I don't know what the expression means, but, I'll take that as a compliment. (!)

Being in the gaming and programming environment for too long does that to you. =)

[This message has been edited by Frost (edited May 17, 2000).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Sijun Forums Forum Index -> Archive : Sep99 - Dec00 All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2005 phpBB Group