Skip to content

planio-gmbh/local-fastimage_resize

 
 

Repository files navigation

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

About

FastImage Resize is an extremely light solution for resizing images in ruby by using libgd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 71.5%
  • C 28.5%