Add test for #4762: VipsIcc: Couldn't link the profiles" for certain pics
This is broken in libvips-8.9.1 but working in libvips-8.10.6. The fix is to use the Docker image with the newest version of libvips.
This commit is contained in:
BIN
test/files/test-weird-profile.jpg
Normal file
BIN
test/files/test-weird-profile.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
@@ -209,4 +209,19 @@ class MediaFileTest < ActiveSupport::TestCase
|
||||
assert_equal([115, 150], @preview.dimensions)
|
||||
end
|
||||
end
|
||||
|
||||
context "an image with a weird embedded color profile" do
|
||||
should "successfully generate a thumbnail" do
|
||||
@image = MediaFile.open("test/files/test-weird-profile.jpg")
|
||||
@preview = @image.preview(150, 150)
|
||||
|
||||
assert_equal(3, @image.channels)
|
||||
assert_equal(:srgb, @image.colorspace)
|
||||
assert_equal([154, 192], @image.dimensions)
|
||||
|
||||
assert_equal(3, @preview.channels)
|
||||
assert_equal(:srgb, @preview.colorspace)
|
||||
assert_equal([115, 150], @preview.dimensions)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user