Commit c3903cc4 authored by Committed by Olaf Meeuwissen
Avoid attaching grayscale ICC profiles to rgb images, or vice-versa.
If the ICC profile added does not match the colour format of the image, libpng will abort. This can leave the scanner motors in an incorrect state and possibly cause permanent damage.
Showing with 21 additions and 1 deletion