Update README.md
This commit is contained in:
parent
e3b8c497b2
commit
39713f806a
@ -49,15 +49,15 @@ TED supports the following switches:
|
|||||||
- `-w` or `-width`: The width of the image when drawn, in pixels. By default this is **-1**.
|
- `-w` or `-width`: The width of the image when drawn, in pixels. By default this is **-1**.
|
||||||
- A value of -1 disables fixed width scaling and instead uses automatic image scaling to resize (respecting aspect ratio) the image to the size of the longest line of text.
|
- A value of -1 disables fixed width scaling and instead uses automatic image scaling to resize (respecting aspect ratio) the image to the size of the longest line of text.
|
||||||
- `-a` or `-align`: How the text should be aligned. Default is **Left**. Accepted values are **Left**, **Center** or **Right**. Not case-sensitive.
|
- `-a` or `-align`: How the text should be aligned. Default is **Left**. Accepted values are **Left**, **Center** or **Right**. Not case-sensitive.
|
||||||
- `-line`: The text to be drawn. This switch can be repeated multiple times to draw multiple lines of text. It can contain special tokens: `@os`, `@userName`, and `@machineName`. These tokens get substituted at runtime with system values for the operating system, current user, and machine name. If no lines are provided, it will render with the following by default:
|
- `-line`: The text to be drawn. This switch can be repeated multiple times to draw multiple lines of text. It can contain special tokens: `@userName`, `@machineName`, `@osName` and `@osVersion`. These tokens get substituted at runtime with system values for the operating system, current user, and machine name. If no lines are provided, it will render with the following by default:
|
||||||
- "USERNAME: @userName"
|
- "USERNAME: @userName"
|
||||||
- "DEVICE NAME: @machineName"
|
- "MACHINE NAME: @machineName"
|
||||||
- "OS: @os"
|
- "OS: @osName"
|
||||||
|
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ted -di path/to/dark_image.png -li path/to/light_image.png -f Arial -fs 14 -ls 5 -hp 10 -vp 10 -line "Hello, @userName!" -line "You are using @os on @machineName."
|
ted -di path/to/dark_image.png -li path/to/light_image.png -f Arial -fs 14 -ls 5 -hp 10 -vp 10 -line "Hello, @userName!" -line "You are using @osName on @machineName."
|
||||||
```
|
```
|
||||||
|
|
||||||
In terms of real world usage, we've found this to be a fantastic tool for helping clients quickly identify key information about their machine whilst on the phone with them.
|
In terms of real world usage, we've found this to be a fantastic tool for helping clients quickly identify key information about their machine whilst on the phone with them.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user