The pilconvert Utility

Convert an image from one format to another. The output format is determined by the target extension, unless explicitly specified with the -c option.

    $ pilconvert lena.tif lena.png
    $ pilconvert -c JPEG lena.tif lena.tmp