Well, if you upload a 8MB image, there might be a chance we won’t be able to automatically resize it down to 860KB in the limited amount of time we allow for size reduction.
We limit this process since it is very CPU intensive and can be used as a DDoS vector.
What’s more, there is no way to predict the size of an image before actually resizing it.
This is what makes this hard…
But the error message is confusing and does not explain what is going on.
I’m trying to upload an image which is much less than 10MB, and the error message says “sorry the max you can upload is 860KB”. Makes no sense for end users.
If it can’t be resized in time, an error message should say something like that and help the user to understand what to do next.
The only thing they can try after reading the existing message is to downsize the image to 860kb, why they actually don’t need to.
Makes sense?
So, I suppose there is an issue, it is either of the two:
Sometimes it’s just an image from clipboard that I insert directly via Ctrl+V.
Despite I can educate myself to save images in JPG and then upload them, there is still that issue of an error message that confuses and makes little sense.
If it is said that an images up to 10MB can be uploaded (and we say that to our users as well), why can’t they upload an image of e.g. 2MB or 3MB or 4MB? It is less than 50% of the allowed size, yet that error pops up that says “sorry up to 864KB” only. It is this error messaging that I’m trying to get fixed.
I mean, it seems as if the error message does not reflect the actual issue and does not help user solve the issue but to dramatically sizedown their images.
If it was unable to size the image down, it should say something about it — i.e. your image is fine in size but we couldn’t resize it, try resizing it to half of its size before uploading etc - something like that.
Btw:
can we make this time limit configurable?
can we queue image resizing which failed and display the image thumbnail in the meantime? (the server might be idle at night)
client-side: we could add a warning when the image size is larger than the maximum allowed (letting the user know that the final image will be downsized)
server-side: use the thumbnail in the post but run a background job that will try (harder) to downsize the original image
The error messages are misleading and can be improved to make more sense
While it is said that images up to 10MB can be uploaded, it does not work like that
CPU could be used more intense (queued) to downsize an image after the actual upload happens, instead of refusing image upload which is smaller than 10MB.
The focus in this report is on that the functionality does not correspond to the claims.
This is an insanely small value. I think 1024kb is quite low for a maximum image file size, much less… anything smaller than that.
I think the real issue here is, you should allow larger images if you users want to upload images. Make room, buy more server storage space, etc. That or disallow uploading images altogether and force them to post images to imgur (or similar) first.
I have an issue with this though. Many image hosting services don’t have upload size limits. So a person can upload a 100mb GIF, which then loads on our forum and burns through the users mobile data caps.
I’d like the image size restrictions to apply to even linked images. Maybe with a ‘click to load’ button replacing it.
The problem is, not all users even know the difference between JPEG and PNG, let along being able to resize and convert them before uploading.
Also, that are a lot of cases when a screen-shot is copied to the clipboard in PNG format (for example, FireFox’s new screen-shot feature). People are just gonna Ctrl-V to paste that photo into a message and fire away. They are not gonna take the time to convert and downsize.
Can there be a background low-priority job running that automatically resize these uploaded images to a particular maximum size?