Skip to content

Commit

Permalink
RGB or RGBA
Browse files Browse the repository at this point in the history
  • Loading branch information
irv committed Dec 8, 2023
1 parent b42cb61 commit 6b43756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image_processing/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def check_colour_profiles_match(source_filepath, converted_filepath):
if source_image.mode != converted_image.mode:
if source_image.mode == BITONAL and converted_image.mode == GREYSCALE:
logger.info('Converted image is greyscale, not bitonal. This is expected')
elif source_image.mode in ['RGBX', 'I;16'] and converted_image.mode == 'RGB':
elif source_image.mode in ['RGBX', 'I;16'] and converted_image.mode in ['RGB', 'RGBA']:
logger.info('Converted image in RGB space, but was converted from a compatible space. This is expected.')
else:
raise exceptions.ValidationError(
Expand Down

0 comments on commit 6b43756

Please sign in to comment.