Using the magick
command (or `convert for IM 6.x users) you con convert any image format to any other. with no other arguments, as little processing as possible will be done to move from one format to the other. Simply specify your input and output files. To convert a JPEG to a PNG:
$ magick image.jpg image.png
Or a TIFF to a GIF:
$ magick image2.tif image.gif