magick_filter 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -3
- data/lib/magick_filter/version.rb +1 -1
- data/magick_filter.gemspec +2 -2
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b3a2361a449784dd6949a417b5f22101bd1baf8d0674adb6e2a8b94feb8f36b
|
4
|
+
data.tar.gz: 87b2d1e05c9e2cc97f10d59a354ca1e9cd4f41c53810ae6fc635b8c8996adc6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d85ee44518ef7450ef9c802749b59d1ac169b972b6c60865f9d0a748124f4b11abf990bb1eeccb1a79adcae95508945c52ec0955ff404731213375303c595fd
|
7
|
+
data.tar.gz: 5723f31c9c3ffb090cda30e13d4cdce470d11db12197bd6531ebed5083e3ef9df222d83dc46fc832be72ef80c2c69c0712e059c8c970ae1743eab3259db5b223
|
data/README.md
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
|
3
3
|
# MagickFilter
|
4
4
|
|
5
|
-
|
5
|
+
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 colours to your images or photos as well.
|
6
6
|
|
7
|
+
This Gem is an attempt to build Ruby Gem and release it to [rubygems.org](https://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.
|
7
8
|
|
8
9
|
This Gem is based on [Image Magick](http://www.imagemagick.org/Usage/), So please make sure that you have image magick installed on your system.
|
9
10
|
|
@@ -26,9 +27,19 @@ Or install it yourself as:
|
|
26
27
|
|
27
28
|
## Usage
|
28
29
|
1. 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](https://www.imagemagick.org/script/color.php)
|
29
|
-
|
30
|
+
```ruby
|
31
|
+
a) MagickFilter::Tool.apply_frame(image_path, "snow")
|
32
|
+
b) MagickFilter::Tool.apply_frame(image_path, "LightPink")
|
33
|
+
c) MagickFilter::Tool.apply_frame(image_path, "SlateBlue1")
|
34
|
+
d) MagickFilter::Tool.apply_frame(image_path, "SpringGreen4")
|
35
|
+
```
|
30
36
|
2. In present there are 12 filters available in this Gem. Use the given below commands ( from Filter Examples section ) on console to convert photos.
|
31
|
-
|
37
|
+
```ruby
|
38
|
+
a) MagickFilter::Tool.process(image_path, "sketch")
|
39
|
+
b) MagickFilter::Tool.process(image_path, "bright")
|
40
|
+
c) MagickFilter::Tool.process(image_path, "sepia")
|
41
|
+
d) MagickFilter::Tool.process(image_path, "rough")
|
42
|
+
```
|
32
43
|
## Frame Examples
|
33
44
|
|
34
45
|
### Original Image
|
data/magick_filter.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["arvind02"]
|
10
10
|
spec.email = ["er.arvind02@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{
|
12
|
+
spec.summary = %q{Apply Filters or Frames on Photo or Image}
|
13
|
+
spec.description = %q{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 colours to your images or photos. Pick any colour for frames from https://www.imagemagick.org/script/color.php }
|
14
14
|
spec.homepage = "https://github.com/arvind02/magick_filter"
|
15
15
|
spec.license = "MIT"
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magick_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arvind02
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,9 +52,11 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description: '
|
56
|
-
|
57
|
-
use.
|
55
|
+
description: 'A powerful yet very simple to use gem to apply all sorts of cool instagram
|
56
|
+
types of filters to your images or photos in your Ruby on Rails application. With
|
57
|
+
this gem you can use all sorts of filters like Poster, Sepia, Navy, Sketch etc.
|
58
|
+
You can apply frames of different colours to your images or photos. Pick any colour
|
59
|
+
for frames from https://www.imagemagick.org/script/color.php '
|
58
60
|
email:
|
59
61
|
- er.arvind02@gmail.com
|
60
62
|
executables: []
|
@@ -121,5 +123,5 @@ rubyforge_project:
|
|
121
123
|
rubygems_version: 2.7.7
|
122
124
|
signing_key:
|
123
125
|
specification_version: 4
|
124
|
-
summary:
|
126
|
+
summary: Apply Filters or Frames on Photo or Image
|
125
127
|
test_files: []
|