Compress images on database

Is it possible to run a workflow to compress the images on my database?
My users have the ability to upload a picture which they can later add to a pdf file.
It takes a very long time to generate the pdf due to the images.

I was wondering if there was a way to update all of the images on my database to be less than 1mb.

Yes
There’s 2 ways to do it:

  1. Run custom Javascript to compress the images - something like: JavaScript image compression and resizing – Labs Madisoft
  2. Use a plugin like: Image Compression Plugin | Bubble

I’d recommend the plugin though. It’ll save a lot of trouble.

Cheers,
Ranjit | Blur Apps