File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,9 @@ vips_icc_build( VipsObject *object )
438
438
439
439
/* Use cmsFLAGS_NOCACHE to disable the 1-pixel cache and make
440
440
* calling cmsDoTransform() from multiple threads safe.
441
+ * Use cmsFLAGS_NOOPTIMIZE to ensure we keep all precision.
441
442
*/
442
- flags = cmsFLAGS_NOCACHE ;
443
+ flags = cmsFLAGS_NOCACHE | cmsFLAGS_NOOPTIMIZE ;
443
444
444
445
if ( icc -> black_point_compensation )
445
446
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION ;
@@ -1228,7 +1229,7 @@ vips_icc_transform_init( VipsIccTransform *transform )
1228
1229
* @out: (out): output image
1229
1230
* @profile_filename: use this profile
1230
1231
*
1231
- * Transform an image from absolute to relative colorimetry using the
1232
+ * Transform an image from absolute to relative colorimetric using the
1232
1233
* MediaWhitePoint stored in the ICC profile.
1233
1234
*
1234
1235
* See also: vips_icc_transform(), vips_icc_import().
Original file line number Diff line number Diff line change @@ -237,12 +237,11 @@ def test_thumbnail_icc(self):
237
237
assert im .width == 290
238
238
assert im .height == 442
239
239
assert im .bands == 3
240
- assert im .bands == 3
241
240
242
241
# the colour distance should not deviate too much
243
242
# (i.e. the embedded profile should not be ignored)
244
243
im_orig = pyvips .Image .new_from_file (JPEG_FILE )
245
- assert im_orig .de00 (im ).max () < 10
244
+ assert im_orig .de00 (im ).max () < 11
246
245
247
246
def test_similarity (self ):
248
247
im = pyvips .Image .new_from_file (JPEG_FILE )
You can’t perform that action at this time.
0 commit comments