Is there a way to compress images in my bubble database after they have bee? uploaded>

Is there a way to run some form of workflow to reduce the size of my user uploaded images in my bubble database. I have added an image compression workflow on image upload but have a large set of data (images) in the database that have not run through this compression workflow.
Is there a way to scrape all my image data and run a workflow to compress the image size?

Yes, but it may be best to run it as a backend workflow.

So kick something off that copies your big image into another field. Then copy back into the original field and maybe use Imgx to reduce the size? Then clear the “copy”.

1 Like

I’m stuck on something similar, can you provide a more specific example? I mean, I have big-size images stored in a live database under one thing, how to copy all of these images in another field and then restore back to the original field?

Create two backend API workflows.

Step 1 - copy the image to another field and reduce
Step 2 - check they look OK
Step 3 - Copy back to your image field

1 Like

Everything is working perfectly, didn’t think about it before, thanks!

@NigelG sorry but could you be a bit more specific on how to do that? Are you using imgx ? I’m tryong to do just that in a workflow but I can’t seem to find the correct way to do it…

Thank you

1 Like

Yes, using Imgx when updating the ‘new’ image field.

@NigelG Sorry but I don’t understand how to do that in a backend workflow. Could you please provide an example? :pray:

Hi @NigelG , one quick question about this:

Which of the following is the option to reduce size? Or do you mean that just by processing with imgix size will be reduced without needing to select any option?

Thanks!

I still have this question. Anyone knows the answer already?
Thank you.