Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: GetAttribute date:create returns current time instead of file creation time

$
0
0
Hi,

I'm trying to read the metadata from an image file. The library can't seem to get an exif profile, so to get around it, I'm using MagickImage.GetAttribute instead. I'm passing int "date:create" to the attribute, but somehow this always returns me the current time when that image was read. This is different when I'm reading the image from image magick command line. Image magick CLI gives me a constant time equal to the timestamp stored by the filesystem to the file.
                exifDict = new Dictionary<ExifTag, string>
                {
                    { ExifTag.DateTime, image.GetAttribute("date:create") },
                };
Here's the link to the file I'm testing: https://mega.nz/#!FxJHzSyT!ujV6vNaHyYx09Ql2mIghgarYTYbZH9fPmpQlihSSzRE

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>