mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Add image resizing to LegacyImageUpload (#836)
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ namespace VRCX
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var imageData = options["imageData"] as string;
|
var imageData = options["imageData"] as string;
|
||||||
byte[] fileToUpload = Convert.FromBase64CharArray(imageData.ToCharArray(), 0, imageData.Length);
|
byte[] fileToUpload = AppApi.Instance.ResizeImageToFitLimits(Convert.FromBase64String(imageData));
|
||||||
string fileFormKey = "image";
|
string fileFormKey = "image";
|
||||||
string fileName = "image.png";
|
string fileName = "image.png";
|
||||||
string fileMimeType = "image/png";
|
string fileMimeType = "image/png";
|
||||||
|
|||||||
Reference in New Issue
Block a user