# Client side image resizing before upload?

**URL:** <https://community.weweb.io/t/client-side-image-resizing-before-upload/8667>\
**Category:** Ask us anything\
**Created:** [May 20, 2024, 8:56am UTC](https://community.weweb.io/t/client-side-image-resizing-before-upload/8667 "2024-05-20T08:56:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Kkluz](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kkluz](https://community.weweb.io/u/Kkluz)\
**Post date:** [May 22, 2024, 6:01pm UTC](https://community.weweb.io/t/client-side-image-resizing-before-upload/8667/3 "2024-05-22T18:01:23Z")

</div>

Basically I want to allow my users to upload image files. However, any image size that are over 500kb will be compressed to 500kb.  
I’ve read this thread in community:  
[Client side image resizing before upload? Alternative to using TinyPNG after upload - #2 by luka](https://community.weweb.io/t/client-side-image-resizing-before-upload-alternative-to-using-tinypng-after-upload/7217/2)

and one member suggested using :[compressorjs CDN by jsDelivr - A CDN for npm and GitHub](https://www.jsdelivr.com/package/npm/compressorjs)

I opened the link but I have no idea how to “install” the script in weweb.

---

_[View the full topic](https://community.weweb.io/t/client-side-image-resizing-before-upload/8667)._
