You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kio-extras/kio-extras_largeimages.patch

13 lines
501 B

2 years ago
--- 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;
2 years ago
/* The idea is to read the free ram and try to avoid OS trashing when the
* image is too big: