From ce602fbc70b1da20164aea79fd64b7b780070948 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sat, 30 Mar 2024 13:59:11 +0100 Subject: SLS: add aspect ratio note for resized images --- src/sls.cpp | 5 +++-- 1 file 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" : ""); } } -- cgit v1.2.3