Class | ImageScience |
In: |
lib/image_science.rb
|
Parent: | Object |
Provides a clean and simple API to generate thumbnails using FreeImage as the underlying mechanism.
For more information or if you have build issues with FreeImage, see seattlerb.rubyforge.org/ImageScience.html
VERSION | = | '1.2.1' |
Creates a square thumbnail of the image cropping the longest edge to match the shortest edge, resizes to size, and yields the new image.
Saves the image out to path. Changing the file extension will convert the file type to the appropriate format.
Creates a proportional thumbnail of the image scaled so its longest edge is resized to size and yields the new image.