plimsby 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/README.md CHANGED
@@ -48,7 +48,8 @@ It wants the name typed again and the password, from prompts or from `--confirm-
48
48
 
49
49
  `plimsby inventory` reads and writes the five kinds of record: items, labels, field types, relation
50
50
  types, and relations, each with `list`, `get`, `create`, `replace`, and `delete`. Field types also
51
- take `append-component` and `replace-options`.
51
+ take `append-component` and `replace-options`, and items `set-image`, `get-image`, and
52
+ `remove-image`.
52
53
 
53
54
  ```bash
54
55
  plimsby inventory labels create --name Kitchen
@@ -80,6 +81,18 @@ hold the old one, then leave the old one out.
80
81
  plimsby inventory field-types replace-options "$condition" --option new --option worn --option broken
81
82
  ```
82
83
 
84
+ An item has one image, which never travels in its body. `set-image` takes a JPEG, PNG, or WebP
85
+ file, or `-` for standard input, and prepares it as Inventory's pages do: turned upright as the
86
+ camera's orientation tag says, made no longer than 1600 pixels on its longer side, laid over white,
87
+ and re-encoded as WebP, which leaves behind what the camera wrote beside the picture, the place it
88
+ was taken among it. A 256-pixel thumbnail goes up after it, for lists to show. `get-image` writes
89
+ the image as it is kept.
90
+
91
+ ```bash
92
+ plimsby inventory items set-image "$item" photo.jpg
93
+ plimsby inventory items get-image "$item" --output photo.webp
94
+ ```
95
+
83
96
  A field value is a string in its primitive's canonical encoding (`12`, never `012`; for an enum, one
84
97
  of its options exactly), or for a composite an object of such strings, and the API refuses any other
85
98
  form rather than correcting it. [Inventory's help page](https://inventory.plimsby.com/help) explains