--- kio-extras-22.08.0/thumbnail/imagecreator.cpp 2022-08-10 22:53:51.000000000 +0200 +++ kio-extras-22.08.0-new/thumbnail/imagecreator.cpp 2022-08-19 16:23:24.160033608 +0200 @@ -56,6 +56,9 @@ bool ImageCreator::create(const QString { // create image preview QImageReader ir(path); + QSize sz = ir.size(); + if(sz.width() > 10240 || sz.height() > 10240) + return false; /* The idea is to read the free ram and try to avoid OS trashing when the * image is too big: