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 <>
parent ef080a3a
......@@ -687,14 +687,8 @@ bool JpegContent::save(QIODevice* device)
d->mRawData.resize(io.size()); char*)d->, io.size());
QImage _image;
QImageWriter writer(device, "jpeg");
if (!writer.write(_image)) {
d->mErrorString = writer.errorString();
return false;
QDataStream stream(device);
stream.writeRawData(d->, d->mRawData.size());
// Make sure we are up to date
Supports Markdown
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