...
How to install ImageMagick
HEIF Support: Note that ImageMagick on Linux systems does not automatically support HEIF encoded files. If you need to convert images or videos of this format you have to build ImageMagick from source with the corresponding flag to use heic. In case you have any troubles doing that, please contact us at support@celix.at.
How to install it on Ubuntu 18.04 or Ubuntu 20.04:
...