Requirement
When users upload HEIF/HEIC images from iOS devices, the web browser (which doesn’t support HEIF/HEIC format) needs to display these images. The images should be automatically converted to JPEG format for browser compatibility.
Solution Tried
Using Gumlet URL parameters to convert HEIF to JPEG:
const imageUrl = ‘https://example.com/sample2.heif?format=auto’;
const imageUrl = ‘https://example.com/sample2.heif?format=jpeg’;
Problem
When using these URL parameters, the images are getting downloaded but still remain in HEIF format instead of being converted to JPEG.
How can we achieve this functionality?