You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the SetProfile function doesn't actually copy all the values to the new object correctly.
For one, the thumbnailValue is left behind, as are the values for the thumbnailLength and thumbnailOffset.
However, when looking a bit deeper, I found that my IExifProfile has 36 values, while my new ExifProfile after: img.SetProfile(profile); var profile2 = img2.GetExifProfile();
It suddenly only has 29 values and the thumbnailLength and offset are set to 0.
As you can see in the following screenshots when I debug, the value clearly changes after being set to a magickImage:
Profile before:
Profile after:
Steps to Reproduce
To reproduce this, you can use any two .jpg images. I have not yet tried this with other imageTypes, nor have I very extensively tested it. I have used a couple of .jpg images to see if it was something on my side, two of which you can download here to try for yourself: https://github.com/ianare/exif-samples I used the 'Canon_40D.jpg' and 'Kodak_CX7530.jpg' images from there. They did copy all other data from each other, except the information about the thumbnails.
If I have some time tomorrow I'll make sure to post an update concerning .png, .tiff and .bmp images.
The text was updated successfully, but these errors were encountered:
Magick.NET version
Magick.NET-Q8-AnyCPU v13.0.0.0
Environment (Operating system, version and so on)
Windows 11 version 22H2, x64 based AMD processor
Description
I noticed that the SetProfile function doesn't actually copy all the values to the new object correctly.
For one, the thumbnailValue is left behind, as are the values for the thumbnailLength and thumbnailOffset.
However, when looking a bit deeper, I found that my IExifProfile has 36 values, while my new ExifProfile after:
img.SetProfile(profile); var profile2 = img2.GetExifProfile();
It suddenly only has 29 values and the thumbnailLength and offset are set to 0.
As you can see in the following screenshots when I debug, the value clearly changes after being set to a magickImage:
Profile before:
Profile after:
Steps to Reproduce
To reproduce this, you can use any two .jpg images. I have not yet tried this with other imageTypes, nor have I very extensively tested it. I have used a couple of .jpg images to see if it was something on my side, two of which you can download here to try for yourself: https://github.com/ianare/exif-samples I used the 'Canon_40D.jpg' and 'Kodak_CX7530.jpg' images from there. They did copy all other data from each other, except the information about the thumbnails.
If I have some time tomorrow I'll make sure to post an update concerning .png, .tiff and .bmp images.
The text was updated successfully, but these errors were encountered: