We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7474a06 commit 2d413f1Copy full SHA for 2d413f1
src/TinyPNG/Extensions/ConvertExtensions.cs
@@ -33,7 +33,16 @@ public static async Task<TinyPngConvertResponse> Convert(this Task<TinyPngCompre
33
34
TinyPngCompressResponse compressResponse = await result;
35
36
- string requestBody = JsonSerializer.Serialize(new { convert = new { type = convertOperation } }, TinyPngClient._jsonOptions);
+ string requestBody = JsonSerializer.Serialize(new {
37
+ convert = new
38
+ {
39
+ type = convertOperation
40
+ },
41
+ transform = new
42
43
+ background = backgroundTransform
44
+ }
45
+ }, TinyPngClient._jsonOptions);
46
47
HttpRequestMessage msg = new(HttpMethod.Post, compressResponse.Output.Url)
48
{
0 commit comments