We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f17f173 commit e65a535Copy full SHA for e65a535
1 file changed
src/MediaConverters/MediaConverters.Tool/Program.cs
@@ -12,6 +12,20 @@
12
13
ImageDecoder d = WebpDecoder.Instance;
14
15
+var maxPixelCount = 100_00_00;
16
+
17
+var w = 1500;
18
+var h = 1300;
19
20
+var s = w / (double) h;
21
22
+var pw = (int) Math.Sqrt(maxPixelCount * w / (double) h);
23
+var ph = (int) Math.Sqrt(maxPixelCount * h / (double) w);
24
25
+var s1 = pw / (double) ph;
26
27
28
29
var tiffFile = @"E:\Download\file_example_TIFF_1MB.tiff";
30
var file = @"E:\Download\file_example_favicon.ico";
31
var buffer = File.ReadAllBytes(file);
0 commit comments