Browse Source

imageconverter: note how many dimensions the image has in --info.

pull/537/head
Vladimír Vondruš 5 years ago
parent
commit
696e9fb105
  1. 5
      src/Magnum/Trade/imageconverter.cpp

5
src/Magnum/Trade/imageconverter.cpp

@ -270,7 +270,10 @@ key=true; configuration subgroups are delimited with /.)")
for(const Trade::Implementation::ImageInfo& info: infos) {
Debug d;
if(info.level == 0) {
d << "Image" << info.image << Debug::nospace << ":";
if(info.size.z()) d << "3D image";
else if(info.size.y()) d << "2D image";
else d << "1D image";
d << info.image << Debug::nospace << ":";
if(!info.name.empty()) d << info.name;
if(!compact) d << Debug::newline;
}

Loading…
Cancel
Save