|
|
|
@ -297,10 +297,10 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
using (var image = Image.Load(TestFile.GetInputFileFullPath(TestImages.Jpeg.Baseline.Calliphora))) |
|
|
|
{ |
|
|
|
var exif = new ExifProfile(); |
|
|
|
exif.SetValue<byte[]>(ExifTag.XPAuthor, Encoding.GetEncoding("UCS-2").GetBytes("Dan Petitt")); |
|
|
|
exif.SetValue(ExifTag.XPAuthor, Encoding.GetEncoding("UCS-2").GetBytes("Dan Petitt")); |
|
|
|
|
|
|
|
exif.SetValue<byte[]>(ExifTag.XPTitle, Encoding.GetEncoding("UCS-2").GetBytes("A bit of test metadata for image title")); |
|
|
|
exif.SetValue<byte[]>(ExifTag.UserComment, Encoding.ASCII.GetBytes("A bit of normal comment text")); |
|
|
|
exif.SetValue(ExifTag.XPTitle, Encoding.GetEncoding("UCS-2").GetBytes("A bit of test metadata for image title")); |
|
|
|
exif.SetValue(ExifTag.UserComment, new EncodedString("A bit of normal comment text", EncodedStringCode.ASCII)); |
|
|
|
|
|
|
|
exif.SetValue(ExifTag.GPSDateStamp, "2022-01-06"); |
|
|
|
exif.SetValue(ExifTag.XPKeywords, new byte[] { 0x41, 0x53, 0x43, 0x49, 0x49, 00, 00, 00, 0x41, 0x41, 0x41 }); |
|
|
|
@ -309,7 +309,6 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
|
|
|
|
exifBytes = exif.ToByteArray(); |
|
|
|
|
|
|
|
image.Save("c:\\temp\\1.jpeg"); |
|
|
|
image.Save(memoryStream, new JpegEncoder()); |
|
|
|
} |
|
|
|
|
|
|
|
|