I absolutely hate trying to upload an image to a website for it to error out that the file is too large.

This post I wrote a while back has some very copy/pasteable code to resize an image using canvas before uploading.

bytesize.dev/posts/image-resiz

The technique is also production ready. When I worked doing identity verification using licenses, we were able to use something like this and size the image down for faster uploads without compromising successful verifications.

@tychi
Hello there 🙂

But what if you have no knowledge of JS?
Are you doomed to have the same issue and give up?😪

@globcoco this solution is more for web devs building a page that uploads an image. If every site had this feature it would just work for everyone, even those with no knowledge of JS :)

Follow

@tychi
Could I dream of this alternate reality?🤩

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.