- Affected App
- WoltLab Suite Core
I uploaded an image that was too big.
This image
https://beta.woltlab.com/images/default-logo.png
But it said the dimensions were too small.
Wouldn't that be too big ?
I uploaded an image that was too big.
This image
https://beta.woltlab.com/images/default-logo.png
But it said the dimensions were too small.
Wouldn't that be too big ?
The required minimum size for avatars is 128x128 pixels. The height of the linked image is only 80 pixels.
QuoteUpload Your Avatar
You may use the following file extensions “gif, jpg, jpeg, png” for your avatar with a maximum file size of 100 kB. The minimum dimensions are 128×128 pixel.Choose FileUPLOAD
it says Max 100 kB, but I uploaded a 11 MB file.
When I try to do that in a post .... I get this
tree_nature_scenery3.jpg
File is too big.
Didn't check the code, but probably the file dimensions are checked before the file size. Not really shure if you could consider this a bug. Fact is, the height of the image was too small, therefore the error message was correct.
And regarding the attachments, they are not limited in image dimensions, only in file size. So, filesize is checked right away and the file is considered as too big correctly.
You got the part where I uploaded an avatar image of 11,000 K. Much larger than the 100K they said was the max.
As I said, the dimensions of that file were below the threshold. This is totally independent from the file size, which is indeed too large. But as I said, probably the system checks the dimensions first, recognized the height being below the limit and exits there without further checking the file size.
Hi
the file size is checked after resizing the image.
Hi
the file size is checked after resizing the image.
So isn't the maximum file size of 100 kB warning misleading ?
Hi
So isn't the maximum file size of 100 kB warning misleading ?
If you stay under the 100 Kilobytes you're safe. If you are above the 100 Kilobytes the avatar might or might not fit. While the warning is not 100% accurate in every case the inaccuracy is not at the expense of the user.
Hi
If you stay under the 100 Kilobytes
you're safe . If you are above the 100 Kilobytes the avatar might or might not fit. While the warning is not 100% accurate in every case the inaccuracy is not at the expense of the user.
What are the odds of not being "safe" ? 1 in 1000 ?
QuoteYou may use the following file extensions “gif, jpg, jpeg, png” for your avatar with a maximum file size of 100 kB. The minimum dimensions are 128×128 pixel.
Just mentioning restrictions like file size likely reduces avatar uploading.
I see almost no point mentioning it other than protecting against the 1/1000.
Hi
What are the odds of not being "safe" ? 1 in 1000 ?
This is a configurable setting by the administrator, some boards may opt for a (way) smaller size than 100 Kilobytes. You can simply omit this information by changing the phrases if you don't think that anyone will exceed the limit in your board.
Don’t have an account yet? Register yourself now and be a part of our community!