Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Compression is Depression (Read 1041 times)
Jul 11th, 2006 at 3:49am

Harold   Offline
Colonel
Knowledge Is Power
EHTE

Gender: male
Posts: 5998
*****
 
Howdy folks! I know you are a knowledgable bunch in here so there must be a few of you that can explain compression techniques. I hear a lot of "too bad compression killed it" comments in the screenshots sections, so I like to find out how compression works and if there's a way to get a good mix between compression and quality ...

Any tips?
 

...

Dell Dimension 8300 | P4 3.2 Ghz. | 2 GB RAM | 150 GB WD Raptor | Gainward 7800 GS+ 512 | FS-GS

click here to read my Studio V interview
IP Logged
 
Reply #1 - Jul 11th, 2006 at 4:40am

Fighting_Falcon   Offline
Colonel
Alpha-Foxtrot 522
Nouméa, New-Caledonia

Gender: male
Posts: 760
*****
 
What I do to store my pics on my HDD is to compress them in png. The average gain is about 50%, that's not a lot but if you don't have too many screenshots and a lot of empty space on your disc you can do that. The advantage is that the quality remains the same so you can modify it as many times as you want and avoid to see it get compressed every time you save it. When you're done with editing, you can save it in jpg, to post it here for exemple Tongue.

I won't enter in the details, but basically compression codes the pic differently than in bitmap. The bitmap format codes every pixel on a predefined number of bits. When you compress the pic, the programm will code the pic depending on the color areas. This isn't very clear so I will give you an exemple Tongue.

For exemple you have a pic of a flag. Say a Blue, whit, red flag (french flag Tongue). When it's still in bitmap, each pixel is clearly coded. During the compression, the prog will code it differently so it says : "theres one area which is blue, width XX, height XX, location on the pic XX, there's one which is white, and so on. Then format like jpg use other methods and it's why too much compression kills the pic.

So that's basically how it works, just a temporary definition so you can see what it's like but I'm sure other simmers will elaborate Wink. Btw I know that what I've written isn't very clear Grin Grin.

Cheers
-Seb
 

My specs:&&&&Asus EN7800GTX - 2GB Corsair PC3200 - AMD64 3700+ Core San Diego 9µ - A8N-SLI Premium - Fortron Blue Storm ATX v2.0 500W&&&&
...
IP Logged
 
Reply #2 - Jul 11th, 2006 at 5:32am
lilley   Ex Member

 
one easy way to stop too much compression in a pic is to crop out of the picture the bits that you dont want, therefore there is les picture and the file size will be smaller, this will result in less compression to get it under 100K

Or, if you're using irfanview (thats the one i use so i am not sure about anything else) you can go into
Image >> Resize/Resample... >> then you can put in what dimensions you are looking for.
BUT

you must check on the bottom "preserve aspect ratio" otherwise you will come out with a picture that has been squashed or stretched!

after doping this the file size will be smaller and therefore less compression will be neded to bring it under 100K

this probably sounds like a lengthy explanation but it is very simple o do and is very effective.

hope this helps
james
 
IP Logged
 
Reply #3 - Jul 11th, 2006 at 10:59am
Tweek   Ex Member

 
Quote:
this probably sounds like a lengthy explanation but it is very simple o do and is very effective.


Effective, but it's not really a compression method. I find that, on 1152x864 desktop resolution, with 17" monitor, anything below 800x600 pixels just looks too small on the screen. I know for a fact that there will be a good deal of people with higher resolutions/smaller monitors than me, and so the size of the picture will be reduced ever more.

Whatever it may be, screenshots or photos, if I'm posting them online, I'll stick them at 800x600.


Back to the original question...

You may find that when shrinking an image in Irfanview, it tends to make the picture much softer than before. This can also give the impression of heavy compression (no rhyme intended!), what with the edges in the picture being less defined. The best thing to do, is to find a program that doesn't soften the images (i.e. Photoshop, or any freeware alternative), resize the image, then open it up in Irfanview and compress.
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print