Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme update

  • Loading branch information...
commit 8fb622700e00ead3dfdfcd475ecba55bc3c7d5a0 1 parent 17a9a20
Jason Fraley oelbrenner authored
Showing with 18 additions and 3 deletions.
  1. +18 −3 README.md
21 README.md
View
@@ -13,12 +13,15 @@ You'll need the RMagick gem installed first, on OSX you may need to install imag
#### Meeting the requirements on Mountain Lion
- $ gem install rmagick
+ $ gem install rmagick
If this complains about imagemagick not being found, install Homebrew (http://mxcl.github.com/homebrew/)
$ brew install imagemagick
+To use the EXIF option, you must have jhead installed, see below for more
+information
+
### Installation
@@ -28,15 +31,27 @@ If this complains about imagemagick not being found, install Homebrew (http://mx
-q no STDOUT ( except for single file JSON )
-b create backup of any optimized files ( prefixes with original- )
+ -e add EXIF tag to prevent double processing ( must have jhead installed )
### Usage
- $ smushkid path/to/directory desired_quality -b -q
+ $ smushkid path/to/directory desired_quality -b -q -e
### Example
$ smushkid wp-content/uploads 75
+### EXIF
+
+to prevent double processing on subsequent script runs, tag the EXIF metadata
+with the string "smushkid" using jhead:
+<http://www.sentex.net/~mwandel/jhead/>
+
+GH mirror here: <https://github.com/oelbrenner/jhead>
+
+eventually this would be nice to have baked-into RMagick or at least use a ruby
+wrapper like this one:
+<https://github.com/oelbrenner/jhead-ruby>
directory = directory you want to process JPG images in
@@ -51,7 +66,7 @@ map at 32 bit, and compresses to desired quality level.
<http://www.imagemagick.org/RMagick/doc/usage.html>
-#### Read more about image quantization:
+#### Read more about image quantization:
<http://www.imagemagick.org/Usage/quantize/#colors>
<http://www.imagemagick.org/RMagick/doc/ilist.html#quantize>
Please sign in to comment.
Something went wrong with that request. Please try again.