Commit 7e59f65f authored by Madhav Kanbur's avatar Madhav Kanbur Committed by Nate Graham
Browse files

Partially revert commit "Use Quality level when saving JPEG images"



* Fixes exif metadata being lost
Signed-off-by: Madhav Kanbur's avatarMadhav Kanbur <abcdjdj@gmail.com>
parent ef080a3a
......@@ -687,14 +687,8 @@ bool JpegContent::save(QIODevice* device)
d->mRawData.resize(io.size());
io.read((unsigned char*)d->mRawData.data(), io.size());
QImage _image;
_image.loadFromData(d->mRawData);
QImageWriter writer(device, "jpeg");
writer.setQuality(GwenviewConfig::jPEGQuality());
if (!writer.write(_image)) {
d->mErrorString = writer.errorString();
return false;
}
QDataStream stream(device);
stream.writeRawData(d->mRawData.data(), d->mRawData.size());
// Make sure we are up to date
loadFromData(d->mRawData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment