Page 1 of 1

Exif info different in api and command line?

Posted: 2007-02-07T13:57:52-07:00
by Jacob
In command line i use
identify.exe -format "%[EXIF:DateTime]" 1.jpg
and see 2006:12:20 17:30:40.
in api i use $str = MagickGetImageProfile($mw2, "%[EXIF:DateTime]");
and str empty.
$str = MagickGetImageProfile($mw2, "EXIF");
return no parsed exif block. Is it normal and any way how parse it?

P.S. Maybe have any advice or hint how make contrast picture in percent?

Re: Exif info different in api and command line?

Posted: 2007-02-07T14:56:36-07:00
by magick
To return the EXIF date/time tag, use
  • MagickGetImageAttribute($mw2, "EXIF:DateTime");

Re: Exif info different in api and command line?

Posted: 2007-02-08T00:53:11-07:00
by Jacob
magick wrote: To return the EXIF date/time tag, use
  • MagickGetImageAttribute($mw2, "EXIF:DateTime");

not work.
i use ImageMagick 6.2.4 09/11/05 Q16 1572
and $str = MagickGetImageAttribute($mw2, "EXIF:DateTime"); $str empty.

Re: Exif info different in api and command line?

Posted: 2007-02-13T08:49:51-07:00
by Jacob
magick wrote: To return the EXIF date/time tag, use
  • MagickGetImageAttribute($mw2, "EXIF:DateTime");


for ImageMagick 6.3.2 02/05/07 Q16 1586 not work also, it return empty string.
Command line call return right datetime. :-(

Re: Exif info different in api and command line?

Posted: 2007-02-13T10:46:14-07:00
by magick
Our mistake. Use MagickGetImageAttribute() not MagickGetImageProfile().

Re: Exif info different in api and command line?

Posted: 2007-02-14T11:42:27-07:00
by Jacob
magick wrote: Our mistake. Use MagickGetImageAttribute() not MagickGetImageProfile().

Nice - it work :-)
Thank you!

I not see this function in MagickWandForPHPManual.chm and
not see it in http://www.magickwand.org/
Help me please, say where is right manual?

Re: Exif info different in api and command line?

Posted: 2007-02-14T15:29:58-07:00
by magick
The documentation is for MagickWand 1.0.0. It has the MagickGetImageProperty() method documented. MagickGetImageAttribute() is deprecated.