LoginSignup
1
2

More than 5 years have passed since last update.

ImageMagickのMagick++ APIでEXIFを取得するには

Last updated at Posted at 2015-05-02
test01.cpp
#include <Magick++.h>

using namespace Magick;

Image img;
img.read(filepath);

// exifという文字列の指定がポイント。
Blob blob = img.profile("exif");
// blob.data()でEXIF情報が取得できる。
g++ -o test01 test01.cpp `Magick++-config --cppflags --cxxflags --libs --ldflags`

文字列で取得できる方法があった

タグを指定する必要があるが、

string exifVal = img.attribute("EIXF:DateTimeOriginal");

関連投稿

関連記事

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2