TiffReadDefines Usage?

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
xpda
Posts: 5
Joined: 2015-05-22T14:19:16-07:00
Authentication code: 6789
Location: Pryor, OK

TiffReadDefines Usage?

Post 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?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: TiffReadDefines Usage?

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
xpda
Posts: 5
Joined: 2015-05-22T14:19:16-07:00
Authentication code: 6789
Location: Pryor, OK

Re: TiffReadDefines Usage?

Post by xpda »

Thank you!
Post Reply