You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Horizontally stretch the text to fit the specified size.
81
-
--white-level NUMBER Minimum pixel value to consider it "white" when cropping the image. Set
82
-
it to a value close to 255. (Default: 240)
81
+
--font-scale NUMBER Scale font size by specified percentage (default: 100%)
82
+
--h-padding DOTS Define custom left and right horizontal padding in pixels (default: 5
83
+
pixels left and 5 pixels right)
84
+
--v-shift DOTS Define relative vertical traslation in pixels (default is to vertically
85
+
center the font)
86
+
--white-level NUMBER Minimum pixel value to consider it "white" when cropping the image. Set it
87
+
to a value close to 255. (Default: 240)
83
88
--threshold NUMBER Custom thresholding when converting the image to binary, to manually
84
89
decide which pixel values become black or white (Default: 75)
85
90
```
86
91
87
92
Options `-sln` are useful to simulate the print, showing the created image and adding a ruler in inches and centimeters (magenta), with horizontal lines to mark the drawing area (dotted red) and the tape borders (cyan).
88
93
89
-
Before generating the text (`TEXT_TO_PRINT`), the tool allows concatenating images with the `-M` option; it can be used more times for multiple images (transparent images are also accepted). The final image can also be saved with the `-S` option and then reused by running again the tool with the `-M` option; when also setting `TEXT_TO_PRINT` to a null string (`""`), the reused image will remain unchanged. Merged images are automatically resized to fit the printable area, removing white borders without modifying the proportion. Resize and traslation of merged images can also be manually controlled with `-R` (floating point number), `-X`, `-Y`. The `--text-size` option horizontally stretches or squeezes the text so that it fits the specified size in millimeters; the size parameter includes `--end-margin` and default left and right paddings, but does not include the size of merged images if used, which have a fixed length that has to be kept proportioned.
94
+
Before generating the text (`TEXT_TO_PRINT`), the tool allows concatenating images with the `-M` option; it can be used more times for multiple images (transparent images are also accepted). The final image can also be saved with the `-S` option and then reused by running again the tool with the `-M` option; when also setting `TEXT_TO_PRINT` to a null string (`""`), the reused image will remain unchanged. Merged images are automatically resized to fit the printable area, removing white borders without modifying the proportion. Resize and traslation of merged images can also be manually controlled with `-R` (floating point number), `-X`, `-Y`. The `--text-size` option horizontally stretches or squeezes the text so that it fits the specified size in millimeters; the size parameter includes `--end-margin` and default left and right paddings, but does not include the size of merged images if used, which have a fixed length that has to be kept proportioned. The `font-scale` allows specifying a percentage to scale the font size, maintaining the aspect ratio; font sizes > 100 are accepted even if potentially causing overflow. `--h-padding` and `--v-shift` allow horizontally and vertically traslating the text (using `--h-padding` with `--end-margin` enables separately cointrolling left and right margins; specifically `--h-padding` uses the same value for the left and right parts, while `--end-margin` will be a relative value applied to the right `--h-padding`).
90
95
91
96
`-i` runs the legacy process of *labelmaker.py* and disables image processing.
0 commit comments