image meta data read

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bushticals
    New Member
    • Aug 2007
    • 12

    image meta data read

    okay, im coming along with my project fairly hassle free, however i was wondering if someone knows how i can read/ extract meta data from image files (in windows)...
    for example, when u right click on an image in windows explorer and click properties, it shows u information about the image such as title, keywords, author comments, etc.
    i want to display this information in my GUI
    im using wxpython at the moment.

    any help would be MUCH appreciated...
  • bushticals
    New Member
    • Aug 2007
    • 12

    #2
    HELP!!! i cant continue without any help...
    please guys!

    Comment

    • ilikepython
      Recognized Expert Contributor
      • Feb 2007
      • 844

      #3
      Originally posted by bushticals
      okay, im coming along with my project fairly hassle free, however i was wondering if someone knows how i can read/ extract meta data from image files (in windows)...
      for example, when u right click on an image in windows explorer and click properties, it shows u information about the image such as title, keywords, author comments, etc.
      i want to display this information in my GUI
      im using wxpython at the moment.

      any help would be MUCH appreciated...
      Check the os module's os.stat() function. That gives you a tuple of values. Using the stat module might help with reading the tuple.

      Comment

      • bushticals
        New Member
        • Aug 2007
        • 12

        #4
        i dont understand what is meant by this? :S

        Comment

        • ilikepython
          Recognized Expert Contributor
          • Feb 2007
          • 844

          #5
          Originally posted by bushticals
          i dont understand what is meant by this? :S
          Don't understand what? It's simple, click on the links and read about os.stat. It's in 14.1.4 if that makes it easier.

          Comment

          • bushticals
            New Member
            • Aug 2007
            • 12

            #6
            ok, this is good for getting the basic image data, but i want to extract the metadata of the image... like i said, comments, keywords, title, author etc.

            Comment

            • bartonc
              Recognized Expert Expert
              • Sep 2006
              • 6478

              #7
              Originally posted by bushticals
              okay, im coming along with my project fairly hassle free, however i was wondering if someone knows how i can read/ extract meta data from image files (in windows)...
              for example, when u right click on an image in windows explorer and click properties, it shows u information about the image such as title, keywords, author comments, etc.
              i want to display this information in my GUI
              im using wxpython at the moment.

              any help would be MUCH appreciated...
              If searched wxPython help files; no luck, yet.

              If you know where to find the C reference for this on the Microsoft site, I can show you how to use the ctype library module to get what you are after.

              Comment

              Working...