I am trying to save a canvas as a jpg image using two different methods. Method A involves converting the canvas data to base64 and then creating a blob to save the image, while Method 2 also converts the data to base64 but uses a custom function to create the blob.
However, both methods are not working as expected. The console output shows that the conversion from base64 to blob is failing in both cases, resulting in a blob size of 0.
If anyone has a working example or solution for saving a canvas as a jpg image, please share it. Any help would be greatly appreciated.