Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Reading image file properties

Last post 22 Apr 2007, 9:49 PM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  18 Apr 2007, 7:08 AM 11873

    Reading image file properties

    Hi,

    Under windows you can look at and change the properties of a file, in this case I am using jpg files, properties of title, subject, keywords, comments and author can be set and displayed.

    Is it possible to get these properties from an AtalaImage? I can not find them anywhere in the MetadataContainer or ExifCollection of my AtalaImage (I am using DotImage 1.1). I really dont want to open the same image under GDI+ as well as the AtalaImage just to get these properties out.

    I hope someone can point me in the right direction.

     Thanks Richard.

  •  22 Apr 2007, 9:49 PM 11899 in reply to 11873

    Re: Reading image file properties

    This was answered in a support case, but in case others are wondering I'll repeat it here.

    You should be able to extract those fields manually. They are not standard EXIF tags but I have found the following ID values:

    Title = 40091
    Comment = 40092
    Author = 40093
    Keywords = 40094
    Subject = 40095

    I should also note that the tag data is stored as byte arrays containing unicode strings. Use System.Text.UnicodeEncoding.Unicode.GetString(data) to convert the byte array into a string.


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML