[QUESTION] Size limits #3526
Unanswered
rbaudrillard-a2mac1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a question for you guys,
Context: I'm trying to integrate SkiaSharp to normalize images/generate thumbnail that our clients upload to our website
We can have really high definition images over 20k*20k in jpeg or png
For now, we know we can not go over approximatively 537 Megapixels otherwise libraries like system.drawing and browser like chrome cannot process/display it.
We wanted to re-encode uploaded images to webp/q80 to save some extra space on disk
But the limit seems to be divided by 2 (268MP) when using webpformat
I found the limitation of 537MP (Int32.MaxValue / 4) in the code but couldnt understand why 268 is my max at this point ?
What am I missing ?
Here is my code:
When using Webp it doesnt work over 268MP
When using Jpeg I can go up to 536MP
I added fake test images
public async Task NormalizeAsync(Stream sourceStream)
{
var inputStream = new MemoryStream();
var outputStream = new MemoryStream();
}
Beta Was this translation helpful? Give feedback.
All reactions