From 3f7786cb43366b839abc061fda277689c470a505 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 9 Jan 2012 17:25:45 +0000 Subject: [PATCH] Modified the Readme.txt (old comments were there before) --- wrap/Exif/Readme.txt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/wrap/Exif/Readme.txt b/wrap/Exif/Readme.txt index fc206e70..0ea5e049 100644 --- a/wrap/Exif/Readme.txt +++ b/wrap/Exif/Readme.txt @@ -1,6 +1,13 @@ -How to read exif metadata from a jpg file: -- add "echo INCLUDEPATH += %rootrel%/code/lib/exif/include>> %filename%" - and "echo SOURCES += %rootrel%\code\lib\exif\*.cpp>> %filename%" to pmake.bat -- include "jhead.h"; -- invoke ::ProcessFile(filename); -- get the available information from the "ImageInfo" global variable of type ImageInfo_t, which is defined in jhead.h. +How to read exif metadata from a jpg file. + = = = = = = = = = = = = = = = = = = = = = + +1- In your .pro file, define the EXIF_DIR variable which locates the Exif directory in your system, and include the exif.pri file +e.g. + EXIF_DIR = ./yourSandboxPath/Exif + include($$EXIF_DIR/exif.pri) + +2- In your source file (where you need the exif reader), add: + #include "jhead.h" +Then, invoke: + ::ProcessFile(filename); +and get the available exif information from the "ImageInfo" global variable of type ImageInfo_t, defined in jhead.h.