Pic Compression and File Sizes

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Pic Compression and File Sizes

Post by haas mark »

For some reason, my computer saves images at very large file sizes, and I don't know why. For example, I just made a wallpaper that had all of about 20 colors, at 1024x768 resolution. It's 477 kb. I don't *think* it should be that big.. but anyhow.. is there a way to fix this, and if not, is there something that I can use to make file sizes smaller?

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Hethrir
Jedi Master
Posts: 1095
Joined: 2003-03-25 05:37am
Location: Brisbane, Australia
Contact:

Post by Hethrir »

What format, and what programme are you saving it in? There should be options for JPEG compression to control size vs. quality.
User avatar
Sir Sirius
Sith Devotee
Posts: 2975
Joined: 2002-12-09 12:15pm
Location: 6 hr 45 min R.A. and -16 degrees 43 minutes declination

Post by Sir Sirius »

I once had a bizarre problem with the "Save Picture As..." funktion forcing me to save all images as 24-bit bitmaps despite the original format. Are you talking about something similar?
Image
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

Hethrir wrote:What format, and what programme are you saving it in? There should be options for JPEG compression to control size vs. quality.
PSP 7.04. And I have particular problems with saving GIFs. JPG compression, I could deal with, if it didn't fuck up the picture past lowest compression.

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Hethrir
Jedi Master
Posts: 1095
Joined: 2003-03-25 05:37am
Location: Brisbane, Australia
Contact:

Post by Hethrir »

hmm, that size isn't toobad...have you tried saving it as a BMP then using another programme to save it and see if it comes out a different size? Do you know what pallette you started with? If you use to 8bit colours only in the image it may have a different result.
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

Hethrir wrote:hmm, that size isn't toobad...have you tried saving it as a BMP then using another programme to save it and see if it comes out a different size? Do you know what pallette you started with? If you use to 8bit colours only in the image it may have a different result.
No, I haven't done that......

As for the palette, I HAD to start with a full pallette. But saving as a GIF automatically reduces it to 256 colors.

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

Another thing I forgot to mention is that my GIFs won't retain transparency in PSP.

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

That doesn't sound so bad. An uncompressed 5-bit (32-color pallete) 1024x768 comes out to around that size. What format are you using? GIF? PNG? JPEG? TIFF? BMP?

As for JPEGs, if you're doing line art it's best to ignore it. The algorithm does not work well with line art.

If GIFs aren't retaining transparency, you're apparently doing something wrong. What, I'm not sure; I don't really like PSP and have been a PS user for some time. GIF, of course, is forced to reduce to 256 colors. PNG can be 32-bit or 8-bit, depending on your options.
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

phongn wrote:That doesn't sound so bad. An uncompressed 5-bit (32-color pallete) 1024x768 comes out to around that size. What format are you using? GIF? PNG? JPEG? TIFF? BMP?
GIF.
If GIFs aren't retaining transparency, you're apparently doing something wrong. What, I'm not sure; I don't really like PSP and have been a PS user for some time. GIF, of course, is forced to reduce to 256 colors. PNG can be 32-bit or 8-bit, depending on your options.
Actually, for gods only know what reason, I can get it to retain trnasparency in Animation Shop, but not in Paint Shop Pro. o.O And I tinkered with the general settings, and it still didn't do it right.

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Hamel
Sith Marauder
Posts: 3842
Joined: 2003-02-06 10:34am
Contact:

Re: Pic Compression and File Sizes

Post by Hamel »

verilon wrote:For some reason, my computer saves images at very large file sizes, and I don't know why. For example, I just made a wallpaper that had all of about 20 colors, at 1024x768 resolution. It's 477 kb. I don't *think* it should be that big.. but anyhow.. is there a way to fix this, and if not, is there something that I can use to make file sizes smaller?

~ver
How are the colors distributed on the image?

Are there vast areas of one color, or are there unique colors every few pixels?
"Right now we can tell you a report was filed by the family of a 12 year old boy yesterday afternoon alleging Mr. Michael Jackson of criminal activity. A search warrant has been filed and that search is currently taking place. Mr. Jackson has not been charged with any crime. We cannot specifically address the content of the police report as it is confidential information at the present time, however, we can confirm that Mr. Jackson forced the boy to listen to the Howard Stern show and watch the movie Private Parts over and over again."
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

verilon wrote:
phongn wrote:That doesn't sound so bad. An uncompressed 5-bit (32-color pallete) 1024x768 comes out to around that size. What format are you using? GIF? PNG? JPEG? TIFF? BMP?
GIF.
If you want to use palette-based format, you probably won't get much better than 480KB or so. Try enabling LZW compression for GIF images if you can, or mess with PNGs.
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

Here is the image in question: http://verilon.free-host.com/vnvnation.gif

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

phongn wrote:
verilon wrote:
phongn wrote:That doesn't sound so bad. An uncompressed 5-bit (32-color pallete) 1024x768 comes out to around that size. What format are you using? GIF? PNG? JPEG? TIFF? BMP?
GIF.
If you want to use palette-based format, you probably won't get much better than 480KB or so. Try enabling LZW compression for GIF images if you can, or mess with PNGs.
Uhm.. what exactly is that?

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
aerius
Charismatic Cult Leader
Posts: 14801
Joined: 2002-08-18 07:27pm

Post by aerius »

Shrunk it down to about 180kb with Photoshop, it's now a jpeg. Quality seems decent and I have the jpeg set at medium quality so I can squeeze it down a bit more if needed.

http://members.rogers.com/tlin0252/vnvnation.jpg
Image
aerius: I'll vote for you if you sleep with me. :)
Lusankya: Deal!
Say, do you want it to be a threesome with your wife? Or a foursome with your wife and sister-in-law? I'm up for either. :P
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

aerius wrote:Shrunk it down to about 180kb with Photoshop, it's now a jpeg. Quality seems decent and I have the jpeg set at medium quality so I can squeeze it down a bit more if needed.

http://members.rogers.com/tlin0252/vnvnation.jpg
Cool.. Though it still boggles the mind why it's so big.. I don't understand why, as I've seen more complex wallpapers with smaller file sizes.. :?

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Drooling Iguana
Sith Marauder
Posts: 4975
Joined: 2003-05-13 01:07am
Location: Sector ZZ9 Plural Z Alpha

Post by Drooling Iguana »

I got the filesize down to 387k by converting it to PNG. here's the converted image (it's on Angelfire, so you'll probably have to copy/paste it to your URL bar to get it to work). I don't think you're going to get it much smaller than that.
Image
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash

"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
User avatar
Hamel
Sith Marauder
Posts: 3842
Joined: 2003-02-06 10:34am
Contact:

Post by Hamel »

verilon wrote:Here is the image in question: http://verilon.free-host.com/vnvnation.gif

~ver
No wonder that's a huge size in gif

Since there are no large areas of a single color, your program can't keep the file size down
"Right now we can tell you a report was filed by the family of a 12 year old boy yesterday afternoon alleging Mr. Michael Jackson of criminal activity. A search warrant has been filed and that search is currently taking place. Mr. Jackson has not been charged with any crime. We cannot specifically address the content of the police report as it is confidential information at the present time, however, we can confirm that Mr. Jackson forced the boy to listen to the Howard Stern show and watch the movie Private Parts over and over again."
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Indeed. There's virtually no pattern to the image that can be easily identified, and the text area is rather difficult to compress.

PNGCrush got it down to 340-350KB or so, but that's about the best lossless compression possible.
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

OK thanks.. but other files (like a 100x100 JPG) I also have problems saving at less that about 10-20Kb at times without losing how it looks. :?

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

verilon wrote:OK thanks.. but other files (like a 100x100 JPG) I also have problems saving at less that about 10-20Kb at times without losing how it looks. :?
That's a 100x100 JPEG, not a 1024x768 JPEG. Also, we have no idea what the content of the two images may be. You can't simple say "this is a JPEG, it should look virtually lossless when compressed."

You have to compare on a case-by-case basis with the general compression method in mind and then choose what format to use (along with other constraints such as filesize and such).
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post by haas mark »

phongn wrote:
verilon wrote:OK thanks.. but other files (like a 100x100 JPG) I also have problems saving at less that about 10-20Kb at times without losing how it looks. :?
That's a 100x100 JPEG, not a 1024x768 JPEG. Also, we have no idea what the content of the two images may be. You can't simple say "this is a JPEG, it should look virtually lossless when compressed."

You have to compare on a case-by-case basis with the general compression method in mind and then choose what format to use (along with other constraints such as filesize and such).
Well, I mean that it gets really blurry and just fucked up in general. I have ten tons of problems, it seems, with my comp and compression.. and for some reason can't run PS that's better than 6.0. :?

As well, that's not just 100x100 JPGs.. JPGs in general.

~ver
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

It may be that PSP's JPEG engine is not very good, but at high levels of compression you should expect macroblocking.
User avatar
Hamel
Sith Marauder
Posts: 3842
Joined: 2003-02-06 10:34am
Contact:

Post by Hamel »

Irfanview has a nice (this is only IMO) jpg compression going for it

If i'm working on a sig, I just save the layered file, c&p a flattened version over to Irfanview and take care of it from there
"Right now we can tell you a report was filed by the family of a 12 year old boy yesterday afternoon alleging Mr. Michael Jackson of criminal activity. A search warrant has been filed and that search is currently taking place. Mr. Jackson has not been charged with any crime. We cannot specifically address the content of the police report as it is confidential information at the present time, however, we can confirm that Mr. Jackson forced the boy to listen to the Howard Stern show and watch the movie Private Parts over and over again."
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Post by Einhander Sn0m4n »

Hamel wrote:Irfanview has a nice (this is only IMO) jpg compression going for it

If i'm working on a sig, I just save the layered file, c&p a flattened version over to Irfanview and take care of it from there
You forgot about IView's EXCELLENT PNG Compression Engine! Check the filesize on These Three Files. ;)
Image Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

I usually use Adobe's ImageReady for making PNGs, since I can fine-tune it. Afterwards, I might use PNGCrush to see if that can do any better.
Post Reply