Browse Source

update test

pull/1935/head
Ildar Khayrutdinov 4 years ago
parent
commit
83547dbf22
  1. 7
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Metadata.cs

7
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Metadata.cs

@ -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());
}

Loading…
Cancel
Save