Hi, I'm trying to develop a plugin that automatically converts any uploaded media into multiples webp or jpg images with different resolutions. So far I'm able to do this using the plgVmAfterStoreProduct trigger. But the issue I'm running into is that my function cant really run until the image has fully uploaded. so it fails at first. If I wait a second then save a product again then the script works as the image file has obviously uploaded in that time.
My question is... Can anyone suggest a better method for triggering this script? Is there anyway to attach a script like this on to the end of the MediaUpload function? I couldnt find any triggers to allow this.
I'm more of a front end dev - I'm just dipping my toe in writing a plugin.
Many thanks
I'm using VirtueMart 3.8.6 10373