aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2024-03-30 13:59:11 +0100
committerStefan Pöschel <github@basicmaster.de>2024-03-30 13:59:11 +0100
commitce602fbc70b1da20164aea79fd64b7b780070948 (patch)
tree2c09e026985a6a5f9220468df255676c63e09398 /src
parent0d611aa212fd6429b41819e59933866142718427 (diff)
downloadODR-PadEnc-ce602fbc70b1da20164aea79fd64b7b780070948.tar.gz
ODR-PadEnc-ce602fbc70b1da20164aea79fd64b7b780070948.tar.bz2
ODR-PadEnc-ce602fbc70b1da20164aea79fd64b7b780070948.zip
SLS: add aspect ratio note for resized images
Diffstat (limited to 'src')
-rw-r--r--src/sls.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index 4477af7..8a0c0da 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -263,8 +263,9 @@ const std::string SLSEncoder::REQUEST_REREAD_FILENAME = "REQUEST_SLIDES_DIR_RERE
void SLSEncoder::warnOnSmallerImage(size_t height, size_t width, const std::string& fname, bool resized) {
if (height < 240 || width < 320) {
- fprintf(stderr, "ODR-PadEnc Warning: %s '%s' smaller than recommended size (%zu x %zu < 320 x 240 px)\n",
- resized ? "Resized image" : "Image", fname.c_str(), width, height);
+ fprintf(stderr, "ODR-PadEnc Warning: %s '%s' smaller than recommended size (%zu x %zu < 320 x 240 px)%s\n",
+ resized ? "Resized image" : "Image", fname.c_str(), width, height,
+ resized ? "; please use 4:3 aspect ratio" : "");
}
}