Reducing JPEG Files Sizes While Keeping the Quality

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Reducing JPEG Files Sizes While Keeping the Quality

Postby Mr.Carlyle » Thu Aug 09, 2007 5:59 pm

divVerent wrote:]Speaking of the file size... it really is too large. Do something about it. Maybe you can reduce the JPEG quality factor


Well finally I found something useful for Windows! Don't believe me then try it for yourself and be amazed.

Take your high quality large file sized jpeg and open it with MSPaint...yes the native paint application that comes standard with Windows. Once you have it opened in MSPaint, then just save that file (With the same or different name) as a JPEG and be completely amazed at the drastic reduction in file size without any quality reduction! I do not lie.


I wanted to post this because I saw the divVerent was speaking about taking down the quality of a JPEG to get a smaller size. Please try my above method before you do this. You won't be disappointed.
Image
Mr.Carlyle
Alien
 
Posts: 148
Joined: Sat Jun 16, 2007 6:17 pm
Location: USA

Postby divVerent » Thu Aug 09, 2007 6:04 pm

lol, the MS Paint method DOES reduce quality, but to a reasonable level. Same thing as I did with jpegoptim --strip-all -m95 or -m90 (NOT -m85). Which of the methods you use is your choice.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Mr.Carlyle » Thu Aug 09, 2007 6:19 pm

divVerent wrote:lol, the MS Paint method DOES reduce quality, but to a reasonable level. Same thing as I did with jpegoptim --strip-all -m95 or -m90 (NOT -m85). Which of the methods you use is your choice.


Aww, I was under the impression that it didn't. Damn div, you must have a script that contacts you whenever someone uses your name, cause that reply was fast. :P
Image
Mr.Carlyle
Alien
 
Posts: 148
Joined: Sat Jun 16, 2007 6:17 pm
Location: USA

Postby Shoe » Thu Aug 09, 2007 7:50 pm

Funny, I remember Paint making JPEGs look like crap :D But that was back on Windows 98, I stopped using Paint a good while before I upgraded to XP.

I guess that's one way to go about optimization :)
Shoe
Keyboard killer
 
Posts: 517
Joined: Wed Mar 08, 2006 2:18 am

Postby Ed » Thu Aug 09, 2007 9:21 pm

There are tools for doing this sort of operation. I have done quite a lot of work in this area having written a shell script for brute force compression of ODF files.

This is what I use in a bash script:
Code: Select all
jpegoptim --strip-all --quiet *.jpg   # Optimise JPEG's losslessly

     for a in `ls *.jpg`
           do
jpegtran -progressive -outfile $a $a #.prog $a
done;
jpegoptim --strip-all --quiet *.jpg   # Optimise JPEG's losslessly
jpegoptim --strip-all -m95 --quiet *.jpg   # Cap JPEG's at m%

for a in `ls /*.jpg`
           do
jpegtran -progressive -outfile $a $a
done;
jpegoptim --strip-all --quiet *.jpg   # Optimise JPEG's losslessly


On some very bad JPEG's made with Photoshop I have reduced the size of a JPEG to 3% of the original file. Normally you don't get anything like that, 20% is good.
Ed
Forum addon
 
Posts: 1172
Joined: Wed Mar 01, 2006 12:32 am
Location: UK

Postby Ed » Thu Aug 09, 2007 9:25 pm

Shoe wrote:Funny, I remember Paint making JPEGs look like crap :D But that was back on Windows 98

Actually back then Paint didn't support any compressed formats at all so you must have had some really bad JPEG's!
Ed
Forum addon
 
Posts: 1172
Joined: Wed Mar 01, 2006 12:32 am
Location: UK

Postby Shoe » Thu Aug 09, 2007 10:11 pm

Actually you could get it to support them, somehow installing Microsoft PictureIt! made it support compressed formats... kind of a roundabout way of doing so, but it worked.
Shoe
Keyboard killer
 
Posts: 517
Joined: Wed Mar 08, 2006 2:18 am


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron