This command lists the running conditions as shown below:
##################
Information about the running environment of brother_ql.
(Please provide this information when reporting any issue.)
About the computer:
* Platform: Linux-4.4.138-59-default-x86_64-with-SuSE-42.3-x86_64
* Processor: x86_64
* Release: 4.4.138-59-default
* System: Linux
* Machine: x86_64
* Architecture: ('64bit', 'ELF')
About the installed Python version:
* 3.7.0 (default, Jul 31 2018, 19:42:44) [GCC 4.8.5]
About the brother_ql package:
* package location: /local/pyvenv/py37loc/lib/python3.7/site-packages
* package version: 0.9.dev0
* brother_ql CLI path: /local/pyvenv/py37loc/bin/brother_ql
About the requirements of brother_ql:
requirement | requested | installed version
-------------- | ---------- | -----------------
click | any | 6.7
future | any | 0.16.0
packbits | any | 0.6
pillow | >= 3.3.0 | 5.2.0
##################
* The installation instructions were extended to cover
the cases where pip was (willingly or not) used with
the --user flag.
See issue #36 were this came up.
* The use of brother_ql_{create,print,debug,analyze,info}
is now considered deprecated.
* Furthermore: wording on brother_ql_web improved
The code previously found in the function
create_label() in brother_ql.brother_ql_create
now went into a new function convert() in its own module:
convert() in brother_ql.conversion
In addition, the new convert() function is now able to
put more than one pages (labels) into one instruction file.
The strings like tcp://192.168.0.23:9100 or
usb://0x04f9:0x2015 are rather 'identifiers'
than descriptors (terminology).
Users relying on the returned dictionaries of the
list_available_devices() function need to update
the key from 'string_descr' to 'identifier'.
Sorry for the inconvenience.
with pillow < 3.3.0, the call of Image.new()
in brother_ql/brother_ql_create.py line 113
would fail with the following error:
[...]
File "/usr/lib/python3.4/site-packages/brother_ql/brother_ql_create.py", line 113, in create_label
new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))
File "/usr/lib64/python3.4/site-packages/PIL/Image.py", line 2050, in new
return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required (got type tuple)
This seems to work fine on the QL-800, thanks! I've added a tick against
it.
I've also slightly updated the help for `brother_ql_create` to make it
clear that you have to enable the --red option to print on tape which
supports red, otherwise the printer reports an error.
(This happens with the P-Touch software too and it's really unclear what
you're doing wrong.)
create_label() is the most important function to be used (imported)
by other Python scripts and packages. It shouldn't force its calling
code or program to terminate in case of invalid input.
The dissection of the color into red, black, & white now
takes part in the HSV color space (instead of HLS before).
Pillow's built-in capabilities to convert RGB → HSV
are now used.
While the creation of --red labels still takes 16 times longer
than the simple black/white ones, it is now 90% less time than
before this commit.