[KimDaBa] EXIF information from Canon raw files
Robert L Krawitz
rlk at alum.mit.edu
Sun Jan 2 02:20:19 GMT 2005
This little change does the trick.
$ diff -u fileinfo.cpp~ fileinfo.cpp
--- fileinfo.cpp~ 2004-12-30 06:47:34.000000000 -0500
+++ fileinfo.cpp 2005-01-01 21:16:32.618654877 -0500
@@ -2,13 +2,22 @@
#include <kfilemetainfo.h>
#include <qdatetime.h>
#include <qfileinfo.h>
+#include "util.h"
FileInfo FileInfo::read( const QString& fileName )
{
FileInfo fi;
fi._fullPath = fileName;
+ QString tempFileName( fileName );
+ if ( Util::isCRW( fileName ) ) {
+ QString baseName = QFileInfo( fileName ).baseName();
+ tempFileName = baseName + QString::fromLatin1( ".thm" );
+ QFileInfo tempFile (tempFileName);
+ if ( !tempFile.exists() )
+ tempFileName = baseName + QString::fromLatin1( ".THM" );
+ }
- KFileMetaInfo metainfo( fileName );
+ KFileMetaInfo metainfo( tempFileName );
if ( metainfo.isEmpty() )
return fi;
--
Robert Krawitz <rlk at alum.mit.edu>
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf at uunet.uu.net
Project lead for Gimp Print -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
More information about the Kphotoalbum
mailing list