From 9f45d535a0fee24e484341c50a85c427a67b10bd Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 28 May 2025 03:49:29 +1000 Subject: [PATCH] RIP APNGs --- Dotnet/AppApi/Common/ImageSaving.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Dotnet/AppApi/Common/ImageSaving.cs b/Dotnet/AppApi/Common/ImageSaving.cs index 7c49412b..26d54e3b 100644 --- a/Dotnet/AppApi/Common/ImageSaving.cs +++ b/Dotnet/AppApi/Common/ImageSaving.cs @@ -40,16 +40,6 @@ namespace VRCX using var fileMemoryStream = new MemoryStream(imageData); var image = Image.Load(fileMemoryStream); - // for APNG, check if image is png format and less than maxSize - if ((!matchingDimensions || image.Width == image.Height) && - image.Metadata.DecodedImageFormat == PngFormat.Instance && - imageData.Length < maxSize && - image.Width <= maxWidth && - image.Height <= maxHeight) - { - return imageData; - } - if (image.Width > maxWidth) { var sizingFactor = image.Width / (double)maxWidth;