Only white background images allowed

Hey guys, all good?
I need some tips about how to check this:

When I’m uploading some images, I want to check if the background is white or even remove the background from the image. like this:
image

There is some how to do that?!

Thanks!

Hi, if you want to do image manipulation it’s probably best to do that in a pre or post processor. More info: Writing Plugins — Uppy