kelredd-pruview 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kelredd-pruview might be problematic. Click here for more details.
- data/Gemfile.lock +2 -2
- data/lib/pruview/document.rb +12 -17
- data/lib/pruview/sRGB_v4_ICC_preference.icc +0 -0
- data/lib/pruview/version.rb +1 -1
- metadata +14 -15
- data/lib/pruview/USWebCoatedSWOP.icc +0 -0
- data/lib/pruview/sRGB.icm +0 -0
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kelredd-pruview (0.
|
4
|
+
kelredd-pruview (0.5.0)
|
5
5
|
flvtool2
|
6
6
|
mini_magick (~> 3.0)
|
7
7
|
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
flvtool2 (1.0.6)
|
12
12
|
leftright (0.9.1)
|
13
|
-
mini_magick (3.
|
13
|
+
mini_magick (3.7.0)
|
14
14
|
subexec (~> 0.2.1)
|
15
15
|
rake (0.9.2)
|
16
16
|
subexec (0.2.3)
|
data/lib/pruview/document.rb
CHANGED
@@ -71,23 +71,18 @@ module Pruview
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def process_image(image)
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
image.combine_options do |img|
|
87
|
-
img.args << GLOBAL_CMD_ARGS
|
88
|
-
img.profile File.join(File.dirname(__FILE__), 'USWebCoatedSWOP.icc')
|
89
|
-
img.profile File.join(File.dirname(__FILE__), 'sRGB.icm')
|
90
|
-
img.colorspace 'sRGB'
|
74
|
+
begin
|
75
|
+
image.format PROCESS_FORMAT do |command|
|
76
|
+
command.args << GLOBAL_CMD_ARGS
|
77
|
+
command.profile File.join(File.dirname(__FILE__), 'sRGB_v4_ICC_preference.icc')
|
78
|
+
command.colorspace 'sRGB'
|
79
|
+
end
|
80
|
+
image.strip do |command|
|
81
|
+
command.args << GLOBAL_CMD_ARGS
|
82
|
+
end
|
83
|
+
return image
|
84
|
+
rescue Exception => err
|
85
|
+
raise "Error processing image: #{err.message}"
|
91
86
|
end
|
92
87
|
end
|
93
88
|
|
Binary file
|
data/lib/pruview/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kelredd-pruview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly D. Redding
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2014-01-
|
18
|
+
date: 2014-01-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name: bundler
|
22
21
|
prerelease: false
|
22
|
+
type: :development
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
@@ -30,11 +30,11 @@ dependencies:
|
|
30
30
|
- 1
|
31
31
|
- 0
|
32
32
|
version: "1.0"
|
33
|
-
type: :development
|
34
33
|
version_requirements: *id001
|
34
|
+
name: bundler
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: test-belt
|
37
36
|
prerelease: false
|
37
|
+
type: :development
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
@@ -45,11 +45,11 @@ dependencies:
|
|
45
45
|
- 2
|
46
46
|
- 0
|
47
47
|
version: "2.0"
|
48
|
-
type: :development
|
49
48
|
version_requirements: *id002
|
49
|
+
name: test-belt
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
name: mini_magick
|
52
51
|
prerelease: false
|
52
|
+
type: :runtime
|
53
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
@@ -60,11 +60,11 @@ dependencies:
|
|
60
60
|
- 3
|
61
61
|
- 0
|
62
62
|
version: "3.0"
|
63
|
-
type: :runtime
|
64
63
|
version_requirements: *id003
|
64
|
+
name: mini_magick
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
|
-
name: flvtool2
|
67
66
|
prerelease: false
|
67
|
+
type: :runtime
|
68
68
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
@@ -74,8 +74,8 @@ dependencies:
|
|
74
74
|
segments:
|
75
75
|
- 0
|
76
76
|
version: "0"
|
77
|
-
type: :runtime
|
78
77
|
version_requirements: *id004
|
78
|
+
name: flvtool2
|
79
79
|
description: Ease generating image previews (thumbnails) of various files
|
80
80
|
email:
|
81
81
|
- kelly@kellyredding.com
|
@@ -94,10 +94,9 @@ files:
|
|
94
94
|
- bin/ffyml
|
95
95
|
- kelredd-pruview.gemspec
|
96
96
|
- lib/pruview.rb
|
97
|
-
- lib/pruview/USWebCoatedSWOP.icc
|
98
97
|
- lib/pruview/document.rb
|
99
98
|
- lib/pruview/exceptions.rb
|
100
|
-
- lib/pruview/
|
99
|
+
- lib/pruview/sRGB_v4_ICC_preference.icc
|
101
100
|
- lib/pruview/version.rb
|
102
101
|
- lib/pruview/video.rb
|
103
102
|
- lib/pruview/video_image.rb
|
Binary file
|
data/lib/pruview/sRGB.icm
DELETED
Binary file
|