Merge pull request #601 from 13xforever/vnext

Deal with the pesky rotation metadata
This commit is contained in:
Ilya 2020-05-25 02:22:51 +05:00 committed by GitHub
commit 62e27a8c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ namespace CompatBot.Commands
img.Mutate(i => i.Resize(new ResizeOptions {Size = new Size(3840, 2160), Mode = ResizeMode.Min,}));
resized = true;
}
img.Mutate(i => i.AutoOrient());
if (resized || imgFormat.Name != JpegFormat.Instance.Name)
{
imageStream.SetLength(0);