The Asset Compute Development Tool is a local web harness allowing developers to configure and execute Asset Computer workers locally, outside the context of the AEM SDK against the Asset Compute resources in Adobe I/O Runtime.
The Asset Compute Development Tool can be run from the root of the Asset Compute project via the terminal command:
$ aio app run
This will start the Development Tool at http://localhost:9000, and automatically open it in a browser window. For the Development Tool to run, a valid, auto-generated devToolToken must be provided via a query parameter.
source
binary passed to the Asset Compute workeraio app run
standard outdevToolToken
query parameter to be present. This token is automatically generated every time a new Development Tool is spawnedClick-through of running an Asset Compute work in Development Tool (No audio)
Ensure Asset Compute Development Tool is started from your project root using the aio app run
command.
In the Asset Compute Development Tool, upload or select a sample image file
Review the Asset Compute profile definition text area
worker
key defines the URL to the deployed Asset Compute workername
key defines the name of the rendition to generaterendition.instructions
object
Optionally add values for size
, contrast
and brightness
:
{
"renditions": [
{
"worker": "...",
"name": "rendition.png",
"size":"800",
"contrast": "0.30",
"brightness": "-0.15"
}
]
}
Tap the Run button
The Renditions section will populate with a rendition place holder
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.