Raw Image to JPEG with metadata

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
hustmark
Posts: 2
Joined: 2015-07-23T01:28:55-07:00
Authentication code: 1151

Raw Image to JPEG with metadata

Post by hustmark »

hi,
I am very new here, i want to convert RAW image(like .CR2 file,.NEF file) to JPEG image with metadata. I write code as follows:
Image image;
image.read("RAW_NIKON_D7000.NEF");
image.write("test.jpg");
I get a test.jpg file in my computer,but there is no metadata(like ISO Speed,lens type, Aperture value...)in test.jpg file.
Question 1: How can I get a jpeg file with metadata?
Question 2: Can I use ImageMagic library to get the DCT coefficients information from JPEG file?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Raw Image to JPEG with metadata

Post by snibgo »

IM ignores most metadata. Use exiftool for that.
snibgo's IM pages: im.snibgo.com
hustmark
Posts: 2
Joined: 2015-07-23T01:28:55-07:00
Authentication code: 1151

Re: Raw Image to JPEG with metadata

Post by hustmark »

snibgo wrote:IM ignores most metadata. Use exiftool for that.
But exiftool is a command line program. I want to convert raw image to JPEG image using c++ code. How about the second question above?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Raw Image to JPEG with metadata

Post by snibgo »

Command-line programs can be called from with C++ programs. Perhaps there is a library for exiftool (or similar) that can be linked.

I don't know how to get DCT coefficients, or whether IM can do this. You might need to talk directly to the JPEG library.
snibgo's IM pages: im.snibgo.com
Post Reply