Image to Image / Command Line Examples

This page contains various examples of using the Image to Image API in Command Line. The examples are complete and fully functional. Read more about how to convert Image to Image in Command Line.

Basic examples

Basic examples

PNG file to JPEG file

image2image -user-name "your_username" -api-key "your_apikey" \
    -output-format "jpg" \
    "/path/to/logo.png" > "logo.jpg"

PNG url to JPEG file

image2image -user-name "your_username" -api-key "your_apikey" \
    -output-format "jpg" \
    "https://pdfcrowd.com/static/images/logo.png" > "logo.jpg"