epel9
Marc Deop i Argemí 2 years ago
parent 6a2fed82ce
commit bd15efaf40

1
.gitignore vendored

@ -32,3 +32,4 @@
/kio-extras-22.12.1.tar.xz
/kio-extras-22.12.2.tar.xz
/kio-extras-22.12.3.tar.xz
/kio-extras-23.03.80.tar.xz

@ -6,7 +6,7 @@
%endif
Name: kio-extras
Version: 22.12.3
Version: 23.03.80
Release: 1%{?dist}
Summary: Additional components to increase the functionality of KIO Framework
@ -23,10 +23,6 @@ Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name
## upstramable patches
# Don't eat up memory attempting to create thumbnail of huge images
# https://bugs.kde.org/show_bug.cgi?id=420173
Patch1001: kio-extras_largeimages.patch
## upstream patches
# filter plugin provides
@ -220,6 +216,9 @@ time make test -C %{_target_platform} ARGS="--output-on-failure --timeout 10" ||
%changelog
* Mon Mar 20 2023 Marc Deop i Argemí <marcdeop@fedoraproject.org> - 23.03.80-1
- 23.03.80
* Thu Mar 02 2023 Marc Deop i Argemí <marcdeop@fedoraproject.org> - 22.12.3-1
- 22.12.3

@ -1,12 +0,0 @@
--- 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:

@ -1 +1 @@
SHA512 (kio-extras-22.12.3.tar.xz) = 53f289a1d4e516a010c250e68143a35af6e4f047ac723fceebee22ae48dea2412819cf0995fd7b4742a6b9a7e908a4cf03004da974c101f2c9deeceacf54de18
SHA512 (kio-extras-23.03.80.tar.xz) = f18c7a35361983c5252135c25454faf76c44e2ea72dd9495ad2ed18fef1f3b7766f09f34868a1d705746f8bafb600dbad996a7dc94ce0963ff1cae81e698f0eb

Loading…
Cancel
Save