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 @tychi

No, use graphicsmagick and command terminal function '-resize'

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.