ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 exif properties

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
eballinas Posted - Jun 24 2019 : 16:02:56
I read a database blob field. The exif properties are present.
When I try to save this image to a file, the exif properties are not present...


     fotoprueba:=TIEDBBitmap.Create();
     fotoprueba.ParamsEnabled:=true;
     fotoprueba.DataSource:=extraefotods;
     fotoprueba.ImageBlobField:='foto';
     mifoto:=TImageEnView.Create(self);
     with mifoto do
     begin
          setexternalbitmap(fotoprueba);
          datoscasa:=
          IO.Params.EXIF_GPSLatitude_Str+';'+
          IO.Params.EXIF_GPSLongitude_Str+chr(13)+chr(10)+
          IO.params.EXIF_GPSLatitude.ToString+';'+
          IO.Params.EXIF_GPSLongitude.ToString;
          datospersonales:=cuvsalida+','+nombrebeneficiario+chr(13)+chr(10)+
               etapapedida;
          mifoto.Proc.TextOut(align_text_left,align_text_bottom,
          datoscasa,'Arial', 12, clRed, [fsBold]);
          Proc.TextOut(align_text_right,align_text_bottom,
          datospersonales,'Arial', 12, clRed, [fsBold]);
//	     if not IO.Params.EXIF_HasEXIFData then
 //  	          IO.Params.EXIF_HasEXIFData:=true;
//          IO.Params.EXIF_GPSLatitude:=
//   	          StrToFloat(IO.params.EXIF_GPSLatitude.ToString);
//          IO.Params.EXIF_GPSLongitude:=
//   	          strtofloat(IO.params.EXIF_GPSLatitude.ToString);
     end;
     mifoto.IO.SaveToFileJpeg(cuvsalida+' '+nombrebeneficiario+'.jpg');
     mifoto.IO.InjectJpegEXIF(cuvsalida+' '+nombrebeneficiario+'.jpg');
     mifoto.Free;
     fotoprueba.Free;
    end;
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 24 2019 : 22:44:37
Hi

Firstly, if you are using a TImageEnView do not set of ParamsEnabled = true (let TImageEnView.IO handle the Params, or don't use a TImageEnView at all).

Secondly, you do not need InjectJpegEXIF, as saving to JPEG will always include the EXIF data.


Nigel
Xequte Software
www.imageen.com