Image validation

I’m working on a custom platform wich create tasks and sends files to webODM using NodeODM.
Before sending the images, I would like to validate the files, so, wich parameters should I check to make sure they’re valid images to process?.. is there a simple list of them? (to be jpg file, to have GPS information, to have any other value, etc)

Thanks a lot!