Run a custom worker

Click-through of running an Asset Compute work in Development Tool (No audio)

  1. Ensure Asset Compute Development Tool is started from your project root using the aio app run command.

  2. In the Asset Compute Development Tool, upload or select a sample image file

    • Ensure the file is selected in the Source file dropdown
  3. Review the Asset Compute profile definition text area

    • The worker key defines the URL to the deployed Asset Compute worker

    • The name key defines the name of the rendition to generate

    • Other key/values can be provided in this JSON object, and are available in the worker under the rendition.instructions object

      • Optionally add values for size, contrast and brightness:

        {
            "renditions": [
                {
                    "worker": "...",
                    "name": "rendition.png",
                    "size":"800",
                    "contrast": "0.30",
                    "brightness": "-0.15"
                }
            ]
        }
        
  4. Tap the Run button

  5. The Renditions section will populate with a rendition place holder

  6. Once the worker completes, the rendition placeholder will display the generated rendition

Making code changes to the worker code while Development Tool is running will “hot deploy” the changes. The “hot deploy” takes several seconds, so allow the deploy to complete before re-running the worker from Development Tool.