escper 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/escper/image.rb +3 -1
- data/lib/escper/version.rb +1 -1
- metadata +1 -1
data/lib/escper/image.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
module Escper
|
2
|
-
class
|
2
|
+
class Img
|
3
3
|
def initialize(data, type)
|
4
4
|
if type == :file
|
5
5
|
@image = convert(Magick::Image.read(data).first)
|
6
6
|
elsif type == :blob
|
7
7
|
@image = convert(Magick::Image.from_blob(data).first)
|
8
|
+
elsif type == :obj
|
9
|
+
@image = convert(data)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
data/lib/escper/version.rb
CHANGED