Skip to content

Commit

Permalink
tiff workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Aug 1, 2024
1 parent 0d35f0c commit 49eae94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions renderlib/io/FileReaderTIFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,9 @@ FileReaderTIFF::loadFromFile(const LoadSpec& loadSpec)
LOG_DEBUG << "SamplesPerPixel: " << samplesPerPixel;
}
if (samplesPerPixel != 1) {
LOG_ERROR << "" << samplesPerPixel << " samples per pixel is not supported in tiff";
return emptyimage;
LOG_WARNING << "" << samplesPerPixel << " samples per pixel is not supported in tiff. Attempting to ignore and use 1 sample";
samplesPerPixel = 1;
//return emptyimage;
}

uint32_t planarConfig = 0;
Expand Down

0 comments on commit 49eae94

Please sign in to comment.