Home / 2010-340
Name Modified Size InfoDownloads / Week
Parent folder
jpgopt.md5 2010-12-06 41 Bytes
jpgopt 2010-12-06 3.9 kB
readme 2010-12-06 1.5 kB
changelog 2010-12-06 301 Bytes
Totals: 4 Items   5.8 kB 0
1. ABOUT
digital cameras/scaners/etc tends not to care about jpeg optimization too much so you can get quite big files. this script will help you to optimize them, sometimes reducing size up to 2 times (or even more) without quality loss (i couldn't notice it visually. if you're mad about this, find "-quality 75" in the code and replace 75 with higher percent)

2. USAGE
save the file to suitable place and make it executable (chmod u+x /path/to/file). or (as root) place it inro /usr/bin/jpgopt (e.g.) and chmod 755, so you'll just need to run "jpgopt". or place it into your ~/bin (location can be changed in ~/.profile) and chmod u+x to get the same result.
now in your terminal cd to folder containing your jpg files and run "/path/to/jpgopt -h" or simply "jpgopt -h" (if in /usr/bin or ~/bin) to get help on usage.
it's not a problem to process thousands of files, so you can just run it in recursive mode (-d option) and go drink some tea while it deals with your photos

3. DEPENDENCIES
they are quite usual:
- bash (i'm not sure that specific syntax will work in other shells correctly, at least haven't tested)
- coreutils (have you seen Linux desktop distro without them? :) )
- imagemagick (should present if your work with graphics, otherwise install from your repos)

4. LICENSE
read comments at the top of script

5. GET INVOLVED!
visit <http://sf.net/projects/jpgopt> for latest version / bug tracking / feature requests / suggestions / improvement / etc
also you are always welcome at dimas000<at>ya.ru with any questions
Source: readme, updated 2010-12-06