Home
Phabricator
Search
Log In
Paste
P367
(An Untitled Masterwork)
Active
Public
Actions
Authored by
davidre
on Apr 11 2019, 2:03 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/src/ExportManager.cpp b/src/ExportManager.cpp
index f5f14e2..c41e29b 100644
--- a/src/ExportManager.cpp
+++ b/src/ExportManager.cpp
@@ -285,6 +285,7 @@ QString ExportManager::makeSaveMimetype(const QUrl &url)
bool ExportManager::writeImage(QIODevice *device, const QByteArray &format)
{
QImageWriter imageWriter(device, format);
+ imageWriter.setCompression(50);
imageWriter.setQuality(SpectacleConfig::instance()->compressionQuality());
if (!(imageWriter.canWrite())) {
emit errorMessage(i18n("QImageWriter cannot write image: %1", imageWriter.errorString()));
davidre
created this paste.
Apr 11 2019, 2:03 PM
davidre
created this object in space
S1 KDE Community
.
davidre
mentioned this in
D19591: Add Compression Quality slider for lossy formats
.
Apr 11 2019, 2:12 PM
Log In to Comment