
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A powerful yet very simple to use gem to apply all sorts of cool instagram types of filters to your images or photos in your Ruby on Rails application. With this gem you can use all sorts of filters like Poster, Sepia, Navy, Sketch etc. You can apply frames of different types of frames with different colours to your images or photos as well.
This Gem is an attempt to build Ruby Gem and release it to rubygems.org. 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.
Add this line to your application's Gemfile:
gem 'magick_filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install magick_filter
Latest version of this Gem supports adding frames to photo with different colors. You can choose any desired color for frame from ImageMagick color list
MagickFilter::Tool.apply_frame(image_path, frame_color, frame_type)
a) Option 1st => Basic Frame
MagickFilter::Tool.apply_frame(image_path, "snow", "basic")
b) Option 2nd => Sunken Frame
MagickFilter::Tool.apply_frame(image_path, "snow", "sunken")
Different color options example -
a) MagickFilter::Tool.apply_frame(image_path, "snow", "basic")
b) MagickFilter::Tool.apply_frame(image_path, "LightPink", "BASIC")
c) MagickFilter::Tool.apply_frame(image_path, "SlateBlue1", :basic)
In present there are 12 filters available in this Gem. Use the given below commands ( from Filter Examples section ) on console to convert photos.
MagickFilter::Tool.process(image_path, filter_type)
a) MagickFilter::Tool.process(image_path, "sketch")
b) MagickFilter::Tool.process(image_path, "BRIGHT")
c) MagickFilter::Tool.process(image_path, :sepia)
d) MagickFilter::Tool.process(image_path, "rough")
MagickFilter::Tool.apply_frame(image_path, "snow", "basic")
MagickFilter::Tool.apply_frame(image_path, "LightPink", "sunken")
MagickFilter::Tool.apply_frame(image_path, "orchid1", "basic")
MagickFilter::Tool.apply_frame(image_path, "SlateBlue1", "sunken")
MagickFilter::Tool.apply_frame(image_path, "SlateGray4")
MagickFilter::Tool.apply_frame(image_path, "DeepSkyBlue")
MagickFilter::Tool.apply_frame(image_path, "SpringGreen4")
MagickFilter::Tool.apply_frame(image_path, "gold2")
MagickFilter::Tool.process(image_path, "sketch")
MagickFilter::Tool.process(image_path, "gold")
MagickFilter::Tool.process(image_path, "poster")
MagickFilter::Tool.process(image_path, "bright")
MagickFilter::Tool.process(image_path, "bw")
MagickFilter::Tool.process(image_path, "peach")
MagickFilter::Tool.process(image_path, "navy")
MagickFilter::Tool.process(image_path, "firebrick")
MagickFilter::Tool.process(image_path, "contrast")
MagickFilter::Tool.process(image_path, "poster2")
MagickFilter::Tool.process(image_path, "rough")
MagickFilter::Tool.process(image_path, "sepia")
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.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the MagickFilter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that magick_filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.