Skip to content

Commit

Permalink
test: add spec for automated colour profile handling
Browse files Browse the repository at this point in the history
Colour profile is handled before other processing using SrgbConversion class.
Mean average error compared to pixbuf <0.01 (0.0038)
  • Loading branch information
knarewski committed Nov 20, 2024
1 parent a362939 commit 2904f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions spec/morandi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,14 @@
end
end

context 'with non-sRGB colour profile', vips_wip: processor_name == 'vips' do
context 'with non-sRGB colour profile' do
let(:file_in) { 'spec/fixtures/pumpkins-icc-adobe-rgb-1998.jpg' }

it 'converts the profile to sRGB' do
process_image

expect(file_out).to match_reference_image('pumpkins-icc-adobe-rgb-1998-processed-without-modifications')
reference_image_name = 'pumpkins-icc-adobe-rgb-1998-processed-without-modifications'
expect(file_out).to match_reference_image(reference_image_prefix, reference_image_name)
end
end

Expand Down

0 comments on commit 2904f50

Please sign in to comment.