Hi, I've installed the PascalMagick + ImageMagick.<br><br>With the console tool "identify" I get the EXIF properties.<br>But, using PascalMagick, the only method that appears to do this is the MagickGetImageAttribute(), that returns only the timestamp of the file (not the timestamp of picture taken by the camera).<br>
Maybe I'm doing something wrong...<br><br>There is the code I'm testing:<br><br><font class="Apple-style-span" face="'courier new', monospace">program mywanddemo;<br><br>{$apptype console}<br><br>{$mode objfpc}{$H+}<br>
<br>uses SysUtils, magick_wand, ImageMagick;<br><br>procedure ThrowWandException(wand: PMagickWand);<br>var<br>  description: PChar;<br>  severity: ExceptionType;<br>begin<br>  description := MagickGetException(wand, @severity);<br>
  WriteLn(Format('An error ocurred. Description: %s', [description]));<br>  description := MagickRelinquishMemory(description);<br>  Abort;<br>end;<br><br>var<br>  status: MagickBooleanType;<br>  wand: PMagickWand;<br>
  s: string;<br>begin<br>  MagickWandGenesis;<br><br>  wand := NewMagickWand;<br><br>  try<br>    status:=MagickReadImage(wand,'teste.jpg');<br>    if (status = MagickFalse) then ThrowWandException(wand);<br><br>    s:=String(MagickGetImageAttribute(wand));<br>
    writeln(s);<br>  readln;<br><br>  finally<br>    wand := DestroyMagickWand(wand);<br>    MagickWandTerminus;<br>  end;<br>end.   </font><br><br>2010/1/18 Michael Joyner ᏩᏯ <<a href="mailto:mjoyner@vbservices.net">mjoyner@vbservices.net</a>>:<br>
> Guionardo Furlan wrote:<br>><br>> Buenas pessoal,<br>><br>> encontrei essa biblioteca open-source<br>> <a href="http://delphihaven.wordpress.com/ccr-exif/">http://delphihaven.wordpress.com/ccr-exif/</a> e estou tentando portá-la<br>
> para laz-fpc.<br>> Está complicado, porque o lazarus não tem algumas units como xmldom,<br>> por exemplo, além de não compilar algumas declarações como "class<br>> helper".<br>><br>> Então, alguém tem uma sugestão de classe que leia as informações de EXIF?<br>
><br>> Aquele abraço.<br>><br>> -------------------<br>><br>> Hi all,<br>><br>> I found this open source library<br>> <a href="http://delphihaven.wordpress.com/ccr-exif/">http://delphihaven.wordpress.com/ccr-exif/</a> and I'm trying to porting<br>
> it to Laz-fpc.<br>> It's complicated, because Lazarus don't have some units as xmldom, for<br>> example, and don't compile some statements as "helper class".<br>><br>> So someone has a hint of class to read the EXIF information?<br>
><br>> That hug.<br>><br>> (Google Translate)<br>><br>>   <br>><br>> Have you tried looking into ImageMagick ?<br>><br>> <a href="http://wiki.lazarus.freepascal.org/PascalMagick">http://wiki.lazarus.freepascal.org/PascalMagick</a><br>
><br>> -- <br>> LyX: <a href="http://www.lyx.org/">http://www.lyx.org/</a> OpenOffice: <a href="http://www.openoffice.org/">http://www.openoffice.org/</a><br>> Inkscape: <a href="http://www.inkscape.org/">http://www.inkscape.org/</a> Scribus: <a href="http://www.scribus.net/">http://www.scribus.net/</a><br>
> GIMP: <a href="http://www.gimp.org/">http://www.gimp.org/</a> PDF: <a href="http://www.pdfforge.org/">http://www.pdfforge.org/</a><br>><br>> --<br>> _______________________________________________<br>> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>> <a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
><br>><br><br><br><br>-- <br>Timeo hominem unius libri<br>Cogito ergo sum - Carpe diem<br><br>[]s<br>Guionardo Furlan<br><a href="http://guionardo.blogspot.com">http://guionardo.blogspot.com</a><br><a href="http://www.guionardofurlan.com.br">http://www.guionardofurlan.com.br</a><br>
<br>