LoginSignup
2

More than 3 years have passed since last update.

posted at

updated at

Organization

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

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");

関連投稿

関連記事

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
What you can do with signing up
2