THUMBNAILER: missing nippon palette is no longer a hard error
parent
67e0fa24a5
commit
52e364fa59
|
@ -24,8 +24,7 @@ image::ImagePtr volumeThumbnail(const core::String &fileName, io::SeekableReadSt
|
|||
return image;
|
||||
}
|
||||
if (!voxel::initDefaultMaterialColors()) {
|
||||
Log::error("Failed to initialize the default materials");
|
||||
return image::ImagePtr();
|
||||
Log::warn("Failed to initialize the default materials");
|
||||
}
|
||||
|
||||
stream.seek(0);
|
||||
|
|
|
@ -74,7 +74,11 @@ app::AppState Thumbnailer::onRunning() {
|
|||
if (image) {
|
||||
if (!image::Image::writePng(outStream, image->data(), image->width(), image->height(), image->depth())) {
|
||||
Log::error("Failed to write image");
|
||||
} else {
|
||||
Log::info("Write image %s", _outfile.c_str());
|
||||
}
|
||||
} else {
|
||||
Log::error("Failed to create thumbnail for %s", _infile->name().c_str());
|
||||
}
|
||||
|
||||
requestQuit();
|
||||
|
|
Loading…
Reference in New Issue