@watermarkws/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/api.js +1 -1
package/SKILL.md
CHANGED
|
@@ -37,7 +37,7 @@ watermark account # balance and limit
|
|
|
37
37
|
|
|
38
38
|
Useful options on processing commands: `--out <file>` (wait, then download), `--no-wait` (print the queued request and return), `--timeout <seconds>` (default 300), `--format <fmt>`, `--ops-json '[…]'` instead of `--op`, `--max-duration <s>` (video), `--auto` (video screenshot: pass over a blank frame; `result.data.seconds` says which moment was used), `--max-pages <n>` (documents), `--customer <id>`, `--metadata key=value`, `--json`.
|
|
39
39
|
|
|
40
|
-
Operations that exist: images `resize`, `crop`, `rotate`, `flip`, `grayscale`, `border`, `watermark`, `thumbnail`, `compress`, `sepia`, `exposure`, `filter`, `remove_background`, `orient`, `text`, `trim`, `color`, `frame`, `protect`, `shave`, `line`, `adjust`, `color_profile`; videos `resize`, `crop`, `rotate`, `flip`, `grayscale`, `border`, `watermark`; documents `watermark` only (an image on every page; make a text stamp with `image create` first). `watermark` takes `image_url` or `image` (a `file_…` id), `x`, `y` from the top left, `tile_spacing_x`/`tile_spacing_y` to repeat it
|
|
40
|
+
Operations that exist: images `resize`, `crop`, `rotate`, `flip`, `grayscale`, `border`, `watermark`, `thumbnail`, `compress`, `sepia`, `exposure`, `filter`, `remove_background`, `orient`, `text`, `trim`, `color`, `frame`, `protect`, `shave`, `line`, `adjust`, `color_profile`; videos `resize`, `crop`, `rotate`, `flip`, `grayscale`, `border`, `watermark`; documents `watermark` only (an image on every page; make a text stamp with `image create` first). `watermark` takes `image_url` or `image` (a `file_…` id), `x`, `y` from the top left, `tile_spacing_x`/`tile_spacing_y` to repeat it. Run `watermark operations image` before using a parameter you are not sure of.
|
|
41
41
|
|
|
42
42
|
## A folder of files
|
|
43
43
|
|
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// retries for 429 (after Retry-After), 5xx and dropped connections, with an
|
|
3
3
|
// Idempotency-Key on every POST so a retried POST never runs twice.
|
|
4
4
|
|
|
5
|
-
export const VERSION = '0.1.
|
|
5
|
+
export const VERSION = '0.1.3';
|
|
6
6
|
|
|
7
7
|
export class ApiError extends Error {
|
|
8
8
|
constructor(status, error = {}) {
|