Basically WhatsApp doesn't support that codec. Even if you successfully send it, the client will not be able to display it because the codec is not supported.
There are several alternatives:
Send that file as document instead of as image
Re-encode that file to another supported codec like jpeg, png, etc.
Describe the bug throw when sending image with HEIC/HEIF extension
To Reproduce
HEIC
orHEIF
you can download the sample photos https://drive.google.com/drive/folders/10_81O4E_amy1cKpyX-vP56EjHtLxmTif?usp=sharing
Expected behavior successful send reply message with png, jpg, webp, heif, heic extension.
Environment (please complete the following information):
Is this on a server? localhost OS windows
What do your
connectOptions
look like?Do you have multiple clients on the same IP? no
Are you using a proxy? no
Additional context