diff --git a/.gitignore b/.gitignore index c48c00b70..6e7866f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,8 @@ capture_RPiHQ keogram startrails sunwait + +# misc +.vscode/configurationCache.log +.vscode/targets.log +.vscode/dryrun.log diff --git a/src/keogram.cpp b/src/keogram.cpp index 759c277b9..d91b16a35 100644 --- a/src/keogram.cpp +++ b/src/keogram.cpp @@ -198,6 +198,8 @@ void keogram_worker(int thread_num, // expand ? if (cf->img_expand) { cf->num_img_expand = std::max(1, (int) (imagesrc.cols / (float) nfiles)); + if (((float)(cf->num_img_expand * nfiles) / imagesrc.cols) < 0.8) // minimal size 0.8 * imagesrc.cols + cf->num_img_expand++; } // channel_info ? if (cf->channel_info) {