Skip to content
Snippets Groups Projects
Commit 707bf6e6 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Be even more strict on input bit depth

parent ecc207b6
Branches
Tags
No related merge requests found
...@@ -548,8 +548,9 @@ function process_beads() { ...@@ -548,8 +548,9 @@ function process_beads() {
exit_show(); exit_show();
} }
if (bitDepth() == 32) { // neither floating point nor RGB images make sense for this, so check:
print("Floating point images are not supported!"); if (bitDepth() != 8 && bitDepth() != 16) {
print("Only images with a bit depth of 8 or 16 are supported!");
exit_show(); exit_show();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment