Skip to main content
Documentation & User Guides | Fotoware

Processing files with external web services using Curl

By using Curl, Color Factory integrates with an external web service that can process the files and store them in the channel output.

This can for example be a web service that offers processing of images, such as the automatic removal of the image background. Many different types of services exist that offer interaction via curl. Color Factory will issue a curl command per file, where you insert the variables %%INFILE and %%OUTFILE in the syntax to comply with the external system's syntax requirements.

%%INFILE resolves to the path to the input file in the channel's input folder, and %%OUTFILE resolves to the resulting file in the channel's output folder.

Installing Curl

With Windows server 2016 you will need to first download and install Curl. It can be obtained at this external address: https://curl.haxx.se/windows/

Note that Windows Server 2019 includes curl - the executable is found at C:\Windows\system32\curl.exe

Configuring Curl

In Color Factory Settings, expand the relevant channel and select Pixel Edit

Open the Curl Online Processing tab.

The following dialog appears.

Color Factory Curl settings.png

Select Enable online processing with curl and enter the location of the curl executable file. 

In the Command line field, enter the command line as specified by the external service. The example shows an example syntax from remove.bg, an online service for removing the background in pictures. Note that the syntax in the example won't work as you will need to purchase a working API key from remove.bg to use with your integration.

  • Was this article helpful?