I am using the ngx-image-cropper, https://www.npmjs.com/package/ngx-image-cropper, and need to programmatically set the default loaded image. The cropper provides an outlet to do so through the imageFileChanged API input. It requires a File type and any image I've attempted to pull in has been in Blob format.
Is there a way to convert a Blob to a File?
I haven't found any specific examples of someone doing this with this particular image cropper. I am open to using another one if this functionality is included and it's well supported.
I can successfully get a Blob image from our own server or a random api, I just haven't found a way to convert that to a File.
Is there an alternative to the HttpClientModule that would produce a different type?
The image cropper in its basic usage takes in an file and uses that in the cropping tool. Is there a way to do this programmatically?
I'm happy to provide any code, I just don't know what would help in this case.