File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: http://rubygems.org/
3
3
specs:
4
- diff-lcs (1.1.3 )
4
+ diff-lcs (1.2.4 )
5
5
git (1.2.5 )
6
6
jeweler (1.8.4 )
7
7
bundler (~> 1.0 )
8
8
git (>= 1.2.5 )
9
9
rake
10
10
rdoc
11
- json (1.7.5 )
12
- rake (0.9.2.2 )
13
- rdoc (3.12 )
11
+ json (1.7.7 )
12
+ rake (10.0.4 )
13
+ rdoc (3.12.2 )
14
14
json (~> 1.4 )
15
- rspec (2.11 .0 )
16
- rspec-core (~> 2.11 .0 )
17
- rspec-expectations (~> 2.11 .0 )
18
- rspec-mocks (~> 2.11 .0 )
19
- rspec-core (2.11 .1 )
20
- rspec-expectations (2.11.3 )
21
- diff-lcs (~> 1.1.3 )
22
- rspec-mocks (2.11.3 )
15
+ rspec (2.13 .0 )
16
+ rspec-core (~> 2.13 .0 )
17
+ rspec-expectations (~> 2.13 .0 )
18
+ rspec-mocks (~> 2.13 .0 )
19
+ rspec-core (2.13 .1 )
20
+ rspec-expectations (2.13.0 )
21
+ diff-lcs (>= 1.1.3 , < 2.0 )
22
+ rspec-mocks (2.13.1 )
23
23
24
24
PLATFORMS
25
25
ruby
Original file line number Diff line number Diff line change 113
113
114
114
it "should convert a float image to rad" do
115
115
im = @image . srgb_to_xyz . float_to_rad
116
- im . vtype . should == :XYZ
117
116
im . coding . should == :RAD
118
117
im . band_fmt . should == :UCHAR
119
118
end
120
119
121
120
it "should convert a rad image to float" do
122
121
im = @image . srgb_to_xyz . float_to_rad . rad_to_float
123
- im . vtype . should == :XYZ
124
122
im . coding . should == :NONE
125
123
im . band_fmt . should == :FLOAT
126
124
end
170
168
im = VIPS ::Image . new ( sample ( 'icc.jpg' ) . to_s )
171
169
im2 = im . icc_import_embedded ( :RELATIVE_COLORIMETRIC )
172
170
173
- im2 . should match_sha1 ( '274ab0412caf3f578ff5633c357206168e7aae84 ' )
171
+ im2 . should match_sha1 ( 'c1d2a147be14e9ff615396bf040202cdd4c3b9d1 ' )
174
172
end
175
173
176
174
it "should import an embedded icc profile and then export using an external icc profile" do
177
175
im = VIPS ::Image . new ( sample ( 'icc.jpg' ) . to_s )
178
176
im2 = im . icc_import_embedded ( :RELATIVE_COLORIMETRIC )
179
177
im3 = im2 . icc_export_depth ( 8 , sample ( 'lcd.icc' ) . to_s , :RELATIVE_COLORIMETRIC )
178
+
180
179
im3 . should match_sha1 ( 'cf1d8ff608231a13b70d938f00e88dd924e83bc8' )
181
180
end
182
181
188
187
b = im2 . srgb_to_xyz . xyz_to_lab
189
188
diff = a . de_from_lab ( b ) . max
190
189
191
- diff . should < 2
190
+ diff . should < 3
192
191
end
193
192
194
193
#it "should transform an image using an import and an export icc profile (Image#icc_transform)"
You can’t perform that action at this time.
0 commit comments