mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Remove force-disabling of Qt's color space support for sent images
Qt had a bug with interpreting PNG gamma, but it seems it's fixed now.
This commit is contained in:
@@ -39,7 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtGui/QImageWriter>
|
||||
#include <QtGui/QColorSpace>
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -181,10 +180,6 @@ struct PreparedFileThumbnail {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
// We have an example of dark .png image that when being sent without
|
||||
// removing its color space is displayed fine on tdesktop, but with
|
||||
// a light gray background on mobile apps.
|
||||
full.setColorSpace(QColorSpace());
|
||||
auto result = QByteArray();
|
||||
QBuffer buffer(&result);
|
||||
QImageWriter writer(&buffer, "JPEG");
|
||||
|
Reference in New Issue
Block a user