No metadata in new file when converting CR2 to JPG using the API.
See original GitHub issueIs your feature request related to a problem? Please describe
Currently if I use the MagickImage API as instructed here, I do have a converted JPG image. However the colors are slightly altered and there is no metadata.
If you look at this image: On the right is a jpg that was produced by https://www.online-convert.com. The original CR2 is not in the screenshot I attached but the colors look exactly like the picture on the right.
On the left is the jpg produced by MagickImage, using the following code
var settings = new MagickReadSettings();
settings.Format = MagickFormat.Cr2;
using (MagickImage image = new MagickImage(CR2FilePath, settings))
{
image.Write(destinationFileName, MagickFormat.Jpg);
}
The file size is smaller, there is no metadata and the colors are altered.
Describe the solution you’d like
I would like the conversion from CR2 to JPG to keep the metadata and the original colors.
Describe alternatives you’ve considered
I have looked at the documentation here but in the API neither the MagickReadSettings
nor the MagickImageInfo
offer me processing options that can fix my issue.
Additional context
I can submit all my code that uses the API but the lines above are the only MagickImage related ones.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@Mogrinnar Thanks for reporting this issue, and @dlemstra thanks even more for quickly adding the new settings option. Just ran into this issue and found the solution here. 👍
The new API has been published. Hope this works for you.