Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
libkexiv2
Commits
bc124b0e
Commit
bc124b0e
authored
Sep 12, 2009
by
Gilles Caulier
🗼
Browse files
backport commit #1022795 from trunk
svn path=/branches/KDE/4.2/kdegraphics/libs/libkexiv2/; revision=1022806
parent
77b8365a
Changes
1
Hide whitespace changes
Inline
Side-by-side
libkexiv2/kexiv2.cpp
View file @
bc124b0e
...
...
@@ -314,20 +314,23 @@ bool KExiv2::save(const QString& filePath) const
}
// TIFF/EP Raw file based supported by Exiv2 0.18 are : DNG, NEF, PEF.
QString
rawTiffBasedSupported
(
"dng nef pef"
);
QString
rawTiffBasedNotSupported
(
"3fr arw cr2 dcr erf k25 kdc mos orf raw sr2 srf"
);
QStringList
rawTiffBasedSupported
=
QStringList
()
<<
"dng"
<<
"nef"
<<
"pef"
;
QStringList
rawTiffBasedNotSupported
=
QStringList
()
<<
"3fr"
<<
"arw"
<<
"cr2"
<<
"dcr"
<<
"erf"
<<
"k25"
<<
"kdc"
<<
"mos"
<<
"orf"
<<
"raw"
<<
"sr2"
<<
"srf"
;
QString
ext
=
finfo
.
suffix
().
toLower
();
if
(
rawTiffBasedNotSupported
.
contains
(
ext
))
{
kDebug
(
51003
)
<<
"'"
<<
finfo
.
fileName
()
.
toAscii
().
constData
()
<<
"
'
is TIFF based RAW file not yet supported. Metadata not saved."
<<
endl
;
kDebug
(
51003
)
<<
finfo
.
fileName
()
<<
"is TIFF based RAW file not yet supported. Metadata not saved."
<<
endl
;
return
false
;
}
if
(
rawTiffBasedSupported
.
contains
(
finfo
.
suffix
().
toLower
()
)
&&
!
d
->
writeRawFiles
)
if
(
rawTiffBasedSupported
.
contains
(
ext
)
&&
!
d
->
writeRawFiles
)
{
kDebug
(
51003
)
<<
"'"
<<
finfo
.
fileName
()
.
toAscii
().
constData
()
<<
"
'
is TIFF based RAW file supported but writing mode is disabled. "
kDebug
(
51003
)
<<
finfo
.
fileName
()
<<
"is TIFF based RAW file supported but writing mode is disabled. "
<<
"Metadata not saved."
<<
endl
;
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment