EXIF Data like GPS with harbour ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

EXIF Data like GPS with harbour ?

Post by AUGE_OHR »

hi,

i like to get EXIF Data like GPS from Image if available.
where to start :idea:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: EXIF Data like GPS with harbour ?

Post by danielmaximiliano »

*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: EXIF Data like GPS with harbour ?

Post by AUGE_OHR »

hi,
danielmaximiliano wrote: Mon Sep 28, 2020 9:39 pm Try https://exiftool.org/
seem to be a great Tool ... but how get Information into HMG App :idea:

not sure if FreeImage can get EXIF Data ... have not found a "Wrapper" Function
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: EXIF Data like GPS with harbour ?

Post by danielmaximiliano »

Hi Jimmy :
FreeImage supports metadata, this can be verified by reading in the hbfimage contribution.
constant in Freeimage.ch

Code: Select all

/**
  Metadata models supported by FreeImage
*/
//FREE_IMAGE_MDMODEL
#define FIMD_NODATA          -1
#define FIMD_COMMENTS        0   // single comment or keywords
#define FIMD_EXIF_MAIN       1   // Exif-TIFF metadata
#define FIMD_EXIF_EXIF       2   // Exif-specific metadata
#define FIMD_EXIF_GPS        3   // Exif GPS metadata
#define FIMD_EXIF_MAKERNOTE  4   // Exif maker note metadata
#define FIMD_EXIF_INTEROP    5   // Exif interoperability metadata
#define FIMD_IPTC            6   // IPTC/NAA metadata
#define FIMD_XMP             7   // Abobe XMP metadata
#define FIMD_GEOTIFF         8   // GeoTIFF metadata
#define FIMD_ANIMATION       9   // Animation metadata
#define FIMD_CUSTOM          10  // Used to attach other metadata types to a dib
you should read a little inside C:\Harbour\contrib\hbfimage\core.c

They are not the metadata wrapper but there are the comments of the same inside, it begins at line 1182

the routines can be found here http://read.pudn.com/downloads280/sourc ... ge.h__.htm
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: EXIF Data like GPS with harbour ?

Post by AUGE_OHR »

hi,
danielmaximiliano wrote: Tue Sep 29, 2020 1:04 pm FreeImage supports metadata, this can be verified by reading in the hbfimage contribution.
not sure where you read about hbfimage.

i have look into
c:\hmg.3.4.4\HARBOUR\contrib\hbfimage\hbfimage.hbx
C:\MiniGUI\SOURCE\hbfimage\hbfimage.hbx

but there seems me no Function for Metadata

in Extended Version i found in c:\MiniGUI\SOURCE\hbfimage\FreeImage.h

Code: Select all

/** 
  Handle to a metadata model 
*/ 
FI_STRUCT (FIMETADATA) { void *data; }; 
 
/** 
  Handle to a FreeImage tag 
*/ 
FI_STRUCT (FITAG) { void *data; }; 

// Metadata routines
in c:\MiniGUI\SOURCE\hbfimage\core.c all DLL API Call, using BCC Syntax, are present but not active

Code: Select all

/* DLL_API FIMETADATA *DLL_CALLCONV FreeImage_FindFirstMetadata( ...)  */
so it need "more" HB_FUNC() which is C-Code to get Metadata but i´m only a xBase Programmer :(
have fun
Jimmy
Post Reply