After Picking Image file from Gallery or Camera The Conversion to webP is happening Properly.
Getting an Error called: [Unknown process name] CGImageCreate: invalid image provider: NULL.
And later, I found the reason, CGDataProviderCreateWithData(NULL, rgba, 0, NULL); This will return NULL on iOS 11.2, but previously it will return a valid DataProvider instance with 0 data size. So this will break our code to use CGImageCreate(CGImageCreate will not read data provider size, it just calculate size from the arguments you provide)
Could you please provide some code to do fix this Issue...!!!