I am creating a custom form, in which the user is required to upload a few images. I am trying to write some code validating whether the image meets the required resolution, but cannot find a way to do so. I’m working in Wix Studio Editor.
I tried creating an image object in the browser and filling it with the url of the uploaded img but 'new Image()’ is not supported.
I tried fetching the image after uploading into the media library to then buffer it and check the dimensions that way but ‘.buffer()’ and ‘.arrayBuffer’ are not supported on wixFetchResponse objects.
I’m at a loss, this seems like functionality that would be commonly desired by developers.