Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get Jpeg Properties from a jpg file?

How to get Jpeg Properties from a jpg file?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bryan Anslow
    wrote on last edited by
    #1

    I have a simple (I hope) question. I have a disk full of jpg images and just want to pull the jpeg attributes from the file, resolution, etc. The current program, in C++/MFC, looks for duplicate files, and I want to add a pop-up with jpeg info. I looked at the ImageFormat class and also jpegLib, but they seem more concerned with manipulating the image data itself, rather than the attributes. If anyone can suggest a starting point that would be great. Also, if anyone knows of anything to pull the EXIF properties from the file, that would be just excellent. Thanks in advance, Bryan.

    C L 2 Replies Last reply
    0
    • B Bryan Anslow

      I have a simple (I hope) question. I have a disk full of jpg images and just want to pull the jpeg attributes from the file, resolution, etc. The current program, in C++/MFC, looks for duplicate files, and I want to add a pop-up with jpeg info. I looked at the ImageFormat class and also jpegLib, but they seem more concerned with manipulating the image data itself, rather than the attributes. If anyone can suggest a starting point that would be great. Also, if anyone knows of anything to pull the EXIF properties from the file, that would be just excellent. Thanks in advance, Bryan.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      i think GDI+ will let you get all that stuff. our libs will do it, too...

      image processing toolkits | batch image processing

      1 Reply Last reply
      0
      • B Bryan Anslow

        I have a simple (I hope) question. I have a disk full of jpg images and just want to pull the jpeg attributes from the file, resolution, etc. The current program, in C++/MFC, looks for duplicate files, and I want to add a pop-up with jpeg info. I looked at the ImageFormat class and also jpegLib, but they seem more concerned with manipulating the image data itself, rather than the attributes. If anyone can suggest a starting point that would be great. Also, if anyone knows of anything to pull the EXIF properties from the file, that would be just excellent. Thanks in advance, Bryan.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        this[^] is what gets used to obtain a specific image property (e.g. JPEG EXIF field) when using .NET; and I expect it is based directly on similar capabilities inside GDI+. The mapping between items and item numbers I once found using Google... HTH

        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

        B 1 Reply Last reply
        0
        • L Luc Pattyn

          this[^] is what gets used to obtain a specific image property (e.g. JPEG EXIF field) when using .NET; and I expect it is based directly on similar capabilities inside GDI+. The mapping between items and item numbers I once found using Google... HTH

          Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

          B Offline
          B Offline
          Bryan Anslow
          wrote on last edited by
          #4

          Hey, thanks for that Guys, that really gave me the start that I needed, got it half coded already.... Thanks Again, Bryan

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups