Search code examples
c++jpegexif

How do you place EXIF tags into a JPG, having the raw jpeg buffer in C++?


I am having a bit of a problem.

I get a RAW char* buffer from a camera and I need to add this tags before I can save it to disk. Writing the file to disk and reading it back again is not an option, as this will happen thousands of times.

The buffer data I receive from the camera does not contain any EXIF information, apart from the Width, Height and Pixels per Inch.

Any ideas? (C++)


Solution

  • Look at this PDF, on page 20 you have a diagram showing you were to place or modify your exif information. What is the difference with a file on disk ?

    Does the JPEG buffer of your camera contain an EXIF section already ?