I was just wondering if anyone has implemented image compression into file uploads within Verj? Something like CompressorJS or is there any scope for something to be built into Verj?
We are allowing users to upload images of documents etc. but with modern phones some of these images are several MB in size when in fact they could or should be more like KB's.
Any help / advice on this?
Thanks in advance
Image Compression
Moderators: Jon, Steve, Ian, Dave
-
- Moderator
- Posts: 414
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Re: Image Compression
Hi,
I asked our services team whether they have had experience with compressing images, but they have not.
I did a little bit of research and this article looks quite interesting:
https://pqina.nl/blog/compress-image-before-upload/
This looks like it can compress files before uploading. I think you can set the compressed files to the fileupload input element after they are compressed on an onChange event.
Steve
I asked our services team whether they have had experience with compressing images, but they have not.
I did a little bit of research and this article looks quite interesting:
https://pqina.nl/blog/compress-image-before-upload/
This looks like it can compress files before uploading. I think you can set the compressed files to the fileupload input element after they are compressed on an onChange event.
Steve
0 x
-
- Ebase User
- Posts: 67
- Joined: Wed Aug 15, 2012 1:22 pm
Re: Image Compression
Thank you Steve. I have been doing some Googling but there seemed to be a number of ways to achieve this. I'll take a look at the link above and see if it will work for us.Steve wrote: ↑Wed Mar 22, 2023 10:52 amHi,
I asked our services team whether they have had experience with compressing images, but they have not.
I did a little bit of research and this article looks quite interesting:
https://pqina.nl/blog/compress-image-before-upload/
This looks like it can compress files before uploading. I think you can set the compressed files to the fileupload input element after they are compressed on an onChange event.
Steve
0 x
Who is online
Users browsing this forum: No registered users and 58 guests