Commit b0fd8b4c authored by Antti Seppälä's avatar Antti Seppälä

Merge pull request #39 from nemomobile/fixmetadata

[transfer-engine] Initialize angle and mirrored variables in metadata…
parents 80be6f1d eba5ca5c
......@@ -321,17 +321,16 @@ QString ImageOperation::scaleImageToSize(const QString &sourceFile, quint64 targ
void ImageOperation::imageOrientation(const QString &sourceFile, int *angle, bool *mirror)
{
*angle = 0;
*mirror = false;
if(!QuillMetadata::canRead(sourceFile)) {
qWarning() << Q_FUNC_INFO << "Can't read metadata";
*angle = 0;
*mirror = false;
return;
}
QuillMetadata md(sourceFile);
if (!md.hasExif()) {
qWarning() << "Metadata invalid";
*angle = 0;
*mirror = false;
return;
}
......
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