README in mini_magick-1.0.1 vs README in mini_magick-1.1.0

- old
+ new

@@ -46,19 +46,27 @@ Want to manipulate an image at its source (You won't have to write it out because the transformations are done on that file) image = MiniMagick::Image.new("input.jpg") image.resize "100x100" +Want to get some meta-information out? + +image = MiniMagick::Image.from_file("input.jpg") +image[:width] # will get the width (you can also use :height and :format) +image["EXIF:BitsPerSample"] # It also can get all the EXIF tags +image["%m:%f %wx%h"] # Or you can use one of the many options of the format command found here http://www.imagemagick.org/script/command-line-options.php#format + Requirements ------------ You must have ImageMagick installed. - How To Install -------------- -(I've only tested this on OS X and Linux) +If you downloaded the plugin version, just drop the plugin into RAILS_ROOT/plugins/ -I've packaged up MiniMagick as a rails plugin. Just unzip the file to the /vendor/plugins directory of your rails folder and you have access to all the magick. +If you installed this as a gem, then to get it to work add <require "mini_magick"> to RAILS_ROOT/config/environment.rb + +If you have just downloaded this files then copy the mini_magick.rb file into your RAILS_ROOT/lib directory and add <require "mini-magick"> to RAILS_ROOT/config/environment.rb MiniMagick does NOT require rails though. All the code you need to use MiniMagick is located in the mini_magick/lib/mini_magick.rb file.