Accessing Optimisation Profiles
- From the Tools menu, choose Optimisation Profiles
Adding a new Optimisation Profile
- Click the Add button. The Add dialogue appears.
- Enter the name for the new optimisation profile.
- Click OK.
Important
Optimisation Profile definition files created this will require editing to populate required data.
Editing an Optimisation Profile
- Click the Edit button. The Edit dialogue appears.
- Modify the Optimisation Profile attributes.
- Click OK to save the changes.
Important
A dedicated GUI editor is currently not available.
Profile Parameters
Each optimisation profile is defined via a JSON file, containing the following parameters
| Argument | Description |
|---|
tool | The executable name for the tool. If no path is included, it is assumed to be in the Windows path. |
arguments | The arguments to pass to the tool |
expectedExitCode | The exit code which indicates the file was processed successfully |
workingDirectory | The working directory for the tool. Leave blank to be set to an appropriate value. |
The following tokens can be used in the arguments parameter:
| Token | Description |
|---|
$(FilePath) | The full path filename of the image file |
$(FileDir) | The full directory name of the image file |
$(FileFileName) | The name of the image file |
$(FileName) | The name of the image file, excluding the extension |
$(FileExt) | The extension of the image file |
Example
{
"tool": "optipng.exe",
"arguments": "-o7 -strip all \"$(FilePath)\" -preserve",
"workingDirectory": "",
"expectedExitCode": 0
}
Deleting an Optimisation Profile
- Select an optimisation profile from the list.
- Click the Delete button.
- Click Yes to delete the optimisation profile.
Note
The file representing the optimisation profile is moved to the Windows Recycle Bin (if enabled) and can be recovered from there.
Renaming an Optimisation Profile
- Select an optimisation profile from the list.
- Click the Rename button. The Rename dialogue appears.
- Enter the new name for the optimisation profile.
- Click OK.
Creating an copy of a Optimisation Profile
- Select an optimisation profile from the list.
- Click the Copy button. The Save As dialogue appears.
- Navigate to the folder where you want to move the optimisation profile
- Optionally, give the optimisation profile a new name.
- Click Save to create the copy.
Moving an Optimisation Profile
- Select an optimisation profile from the list.
- Click the Move button. The Browse for Folder dialogue appears.
- Navigate to the folder where you want to move the optimisation profile
- Click Select Folder to move the optimisation profile to the new location.