parent
01380a3d46
commit
4a751c4428
@ -1,13 +1,12 @@
|
||||
diff -rupN kio-extras-19.12.3/thumbnail/imagecreator.cpp kio-extras-19.12.3-new/thumbnail/imagecreator.cpp
|
||||
--- kio-extras-19.12.3/thumbnail/imagecreator.cpp 2020-03-03 20:33:29.000000000 +0100
|
||||
+++ kio-extras-19.12.3-new/thumbnail/imagecreator.cpp 2020-04-17 03:13:31.630526008 +0200
|
||||
@@ -34,6 +34,9 @@ bool ImageCreator::create(const QString
|
||||
--- 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;
|
||||
ir.setDecideFormatFromContent(true);
|
||||
img = ir.read();
|
||||
if (img.isNull())
|
||||
|
||||
/* The idea is to read the free ram and try to avoid OS trashing when the
|
||||
* image is too big:
|
||||
|
@ -1 +1 @@
|
||||
SHA512 (kio-extras-22.04.3.tar.xz) = 8e6be2829743b4a44326335dfbfd655c7b52508ab7db566e0f5bec1a56a39ebd33a5d0438b7dc192ec3f0ebcde34ccff5e37d6b63d6bfd9f4ba5a5624616d732
|
||||
SHA512 (kio-extras-22.08.0.tar.xz) = 09ef3c3a7c6efc9a534617b2c6dae0c7c6b0f4ca136436b1c111a91f4b97077ccd9dd91fb255e0b30e189bfaf0c10ecbdaa27dc7fd718c99d17eea3513ee27ae
|
||||
|
Loading…
Reference in new issue