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

Methods

Constants

VERSION = '1.2.3'

Public Instance methods

Creates a square thumbnail of the image cropping the longest edge to match the shortest edge, resizes to size, and yields the new image.

Creates a proportional thumbnail of the image scaled so its longest edge is resized to size and yields the new image.

[Validate]