kelredd-pruview 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/pruview/document.rb +5 -8
- data/lib/pruview/version.rb +1 -1
- data/test/helper.rb +7 -7
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/pruview/document.rb
CHANGED
|
@@ -83,14 +83,11 @@ module Pruview
|
|
|
83
83
|
|
|
84
84
|
def set_RGB_colorspace(image)
|
|
85
85
|
colorspace = run_system_command("identify #{GLOBAL_CMD_ARGS} -format \"%r\" #{image.path}", "Error reading document colorspace")
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
img.profile File.join(File.dirname(__FILE__), 'sRGB.icm')
|
|
92
|
-
img.colorspace 'sRGB'
|
|
93
|
-
end
|
|
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'
|
|
94
91
|
end
|
|
95
92
|
end
|
|
96
93
|
|
data/lib/pruview/version.rb
CHANGED
data/test/helper.rb
CHANGED
|
@@ -14,14 +14,14 @@ FILES_PATH = "./test/files"
|
|
|
14
14
|
OUTPUT_PATH = "./test_output"
|
|
15
15
|
INVALID_OUTPUT_PATH = "./test_output/invalid"
|
|
16
16
|
FILES = {
|
|
17
|
-
'basic image'
|
|
18
|
-
'invalid image'
|
|
19
|
-
'error image'
|
|
20
|
-
'basic video'
|
|
21
|
-
'invalid video'
|
|
22
|
-
'error video'
|
|
17
|
+
'basic image' => "./test/files/basic.jpg",
|
|
18
|
+
'invalid image' => "./test/files/invalid.jpg",
|
|
19
|
+
'error image' => "./test/files/error.jpg",
|
|
20
|
+
'basic video' => "./test/files/basic.mpg",
|
|
21
|
+
'invalid video' => "./test/files/invalid.mov",
|
|
22
|
+
'error video' => "./test/files/error.mov",
|
|
23
23
|
'invalid format' => "./test/files/invalid_format.poop",
|
|
24
|
-
'tiff'
|
|
24
|
+
'tiff' => "./test/files/image.tiff"
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
FileUtils.mkdir_p File.expand_path(FILES_PATH) unless File.exists? File.expand_path(FILES_PATH)
|
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: 13
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Kelly D. Redding
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2014-01-02 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: bundler
|