diff --git a/webp-viewer/viewer.cpp b/webp-viewer/viewer.cpp index 9149d33..0110a8e 100644 --- a/webp-viewer/viewer.cpp +++ b/webp-viewer/viewer.cpp @@ -45,7 +45,9 @@ nonstd::expected create_window_for_image(const std::filesystem std::cerr << "Error: " << file << " is not a WebP file!\n"; return nonstd::make_unexpected(rcInputOutputError); } + #ifdef SHOW_WEBP_SIZE std::cout << "Image size: " << dims.value() << std::endl; + #endif // SHOW_WEBP_SIZE const auto anims = has_animations(buffer.value()); const bool animated = anims.has_value() && anims.value(); diff --git a/webp-viewer/webp-viewer.cbp b/webp-viewer/webp-viewer.cbp index 56e9476..01cc8c0 100644 --- a/webp-viewer/webp-viewer.cbp +++ b/webp-viewer/webp-viewer.cbp @@ -13,6 +13,7 @@