MagickFilter
This Gem is an attempt to build Ruby Gem and release it to rubygems.org. If you want to convert your photo with some cool filters or wants to add frame with different colors, you are at right place. Latest version of this gem allows you to add frame to existing photo. This Gem is in early stage. I'll keep on adding some more filters and features with time.
This Gem is based on Image Magick, So please make sure that you have image magick installed on your system.
Installation
Add this line to your application's Gemfile:
gem 'magick_filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install magick_filter
Usage
Latest version of this Gem supports adding frame to photo with different colors. You can choose any desired color for frame from ImageMagick color list
In present there are 12 filters available in this Gem. Use the given below commands ( from Filter Examples section ) on console to convert photos.
Frame Examples
Original Image
Snow Color Frame
MagickFilter::Tool.apply_frame(image_path, "snow")
LightPink Color Frame
MagickFilter::Tool.apply_frame(image_path, "LightPink")
Orchid1 Color Frame
MagickFilter::Tool.apply_frame(image_path, "orchid1")
SlateBlue1 Color Frame
MagickFilter::Tool.apply_frame(image_path, "SlateBlue1")
SlateGray4 Color Frame
MagickFilter::Tool.apply_frame(image_path, "SlateGray4")
DeepSkyBlue Color Frame
MagickFilter::Tool.apply_frame(image_path, "DeepSkyBlue")
SpringGreen4 Color Frame
MagickFilter::Tool.apply_frame(image_path, "SpringGreen4")
Gold2 Color Frame
MagickFilter::Tool.apply_frame(image_path, "gold2")
Filter Examples
Original Image
Sketch Filter
MagickFilter::Tool.process(image_path, "sketch")
Gold Filter
MagickFilter::Tool.process(image_path, "gold")
Poster Filter
MagickFilter::Tool.process(image_path, "poster")
Bright Filter
MagickFilter::Tool.process(image_path, "bright")
Black & White Filter
MagickFilter::Tool.process(image_path, "bw")
Peach Filter
MagickFilter::Tool.process(image_path, "peach")
Navy Filter
MagickFilter::Tool.process(image_path, "navy")
Firebrick Filter
MagickFilter::Tool.process(image_path, "firebrick")
Contrast Filter
MagickFilter::Tool.process(image_path, "contrast")
Poster2 Filter
MagickFilter::Tool.process(image_path, "poster2")
Rough Filter
MagickFilter::Tool.process(image_path, "rough")
Sepia Filter
MagickFilter::Tool.process(image_path, "sepia")
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/arvind02/magick_filter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the MagickFilter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.