Page 1 of 1

EXIF Data like GPS with harbour ?

Posted: Mon Sep 28, 2020 7:51 pm
by AUGE_OHR
hi,

i like to get EXIF Data like GPS from Image if available.
where to start :idea:

Re: EXIF Data like GPS with harbour ?

Posted: Mon Sep 28, 2020 9:39 pm
by danielmaximiliano

Re: EXIF Data like GPS with harbour ?

Posted: Tue Sep 29, 2020 8:42 am
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

Re: EXIF Data like GPS with harbour ?

Posted: Tue Sep 29, 2020 1:04 pm
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

Re: EXIF Data like GPS with harbour ?

Posted: Wed Sep 30, 2020 7:31 am
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 :(