Page 1 of 1

TiffReadDefines Usage?

Posted: 2015-05-30T20:33:26-07:00
by xpda
I would like to read some metadata tags from a TIFF file, such as 11A and 11B, XResolution and YResolution. Can this be done with Magick.NET? I've tried this (and a few variations), looking for a profile in the image, but I'm not having any success:

Code: Select all

    Dim x As New ImageMagick.TiffReadDefines()
    x.IgnoreExifPoperties = False
    rs.Defines = x
    Using img As New MagickImage("c:\ckh.tif", rs)
Is there a way to do this?

Re: TiffReadDefines Usage?

Posted: 2015-05-31T02:39:13-07:00
by dlemstra
The tiff directories are not stored as a profile in ImageMagick. The XResolution and the YResolution are read and placed in the Density property of MagickImage. And you don't need to set IgnoreExifProperties to false because that is the default value.

Re: TiffReadDefines Usage?

Posted: 2015-05-31T19:57:31-07:00
by xpda
Thank you!