| Summary: | webp is saved in very low quality (like -q 0) | ||
|---|---|---|---|
| Product: | [Applications] gwenview | Reporter: | FabiB <plusfabi> |
| Component: | general | Assignee: | Gwenview Bugs <gwenview-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | major | CC: | myriam, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| See Also: | https://bugreports.qt.io/browse/QTBUG-64437 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
FabiB
2015-12-20 05:17:15 UTC
Oh wow, this is horrible. Looks like we're just using the standard QImageWriter. From documentloadedimpl.cpp:
bool DocumentLoadedImpl::saveInternal(QIODevice* device, const QByteArray& format)
{
QImageWriter writer(device, format);
bool ok = writer.write(document()->image());
if (ok) {
setDocumentFormat(format);
} else {
setDocumentErrorString(writer.errorString());
}
return ok;
}
This seems to be Qt bug in how webp images are saved; adding "writer.setQuality(100);" before we call writer.write() doesn't have any effect. I've filed https://bugreports.qt.io/browse/QTBUG-64437
|