No commit activity in last 3 years
No release in over 3 years
Local FastImage Resize is an extremely light solution for resizing images in ruby by using libgd.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Local FastImage Resize

This is a fork of the FastImage Resize gem.

It features the following differences:

  • Removal of all remote image handling code
  • Replacing RubyInline with native extension
  • Support for Exif orientation
  • Minor changes to code organization

Build Status

Installation

Add this line to your application's Gemfile:

gem 'local-fastimage_resize', require: 'fastimage/resize'

And then execute:

$ bundle

If you are using Bundler's autorequire, you're good to go. Otherwise make sure to require "fastimage/resize".

Or install it yourself as:

$ gem install local-fastimage_resize

Again, make sure to require "fastimage/resize".

External dependencies

local-fastimage_resize, just as fastimage_resize, depends on libgd. Therefore you need to have the development headers installed on your system.

  • Mac OS (Homebrew): brew install gd
  • Debian: apt-get install libgd-dev
  • Ubuntu: apt-get install libgd2-noxpm-dev

The Ubuntu package with XPM support will work just as well. It's just, that fastimage_resize will not make any use of it.

Usage

See README.textile for more documentation. Everything should work as advertised, except for remote images of course.

License

MIT, see file MIT-LICENSE