Image to Image HTTP POST Examples

This page contains various examples of using the Image to Image API with HTTP POST. The examples are complete and fully functional. Read more about how to convert Image to Image with HTTP POST.

Basic examples

Basic examples

Convert a local PNG file to a JPEG file

curl -f -u "your_username:your_apikey" \
    -o "logo.jpg" \
    -F "input_format=image" \
    -F "output_format=jpg" \
    -F "file=@/path/to/logo.png" \
    https://api.pdfcrowd.com/convert/20.10/

Convert url with PNG file to a JPEG file

curl -f -u "your_username:your_apikey" \
    -o "logo.jpg" \
    -F "input_format=image" \
    -F "output_format=jpg" \
    -F "url=https://pdfcrowd.com/static/images/logo.png" \
    https://api.pdfcrowd.com/convert/20.10/

Advanced examples

Template rendering Examples