Modified the Readme.txt (old comments were there before)

This commit is contained in:
Paolo Cignoni 2012-01-09 17:25:45 +00:00
parent d3a9c2c556
commit 3f7786cb43
1 changed files with 13 additions and 6 deletions

View File

@ -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.