From c9a8c009c036199279b091faafa302cce7273794 Mon Sep 17 00:00:00 2001 From: Shane Cranor Date: Fri, 4 Oct 2024 16:58:40 -0500 Subject: [PATCH] Correct the docstring to state that dither is enabled by default --- zebrafy/zebrafy_image.py | 2 +- zebrafy/zebrafy_pdf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrafy/zebrafy_image.py b/zebrafy/zebrafy_image.py index 1e857bc..a48413d 100644 --- a/zebrafy/zebrafy_image.py +++ b/zebrafy/zebrafy_image.py @@ -52,7 +52,7 @@ class ZebrafyImage: - ``"Z64"``: LZ77 / Zlib compressed base64 binary - best compression :param invert: Invert the black and white in resulting image, defaults to ``False`` :param dither: Dither the pixels instead of hard limit on black and white, \ - defaults to ``False`` + defaults to ``True`` :param threshold: Black pixel threshold for undithered image (``0-255``), defaults \ to ``128`` :param width: Width of the image in the resulting ZPL. If ``0``, use default image \ diff --git a/zebrafy/zebrafy_pdf.py b/zebrafy/zebrafy_pdf.py index 8a37c82..020036f 100644 --- a/zebrafy/zebrafy_pdf.py +++ b/zebrafy/zebrafy_pdf.py @@ -50,7 +50,7 @@ class ZebrafyPDF: - ``"Z64"``: LZ77 / Zlib compressed base64 binary - best compression :param invert: Invert the black and white in resulting image, defaults to ``False`` :param dither: Dither the pixels instead of hard limit on black and white, \ - defaults to ``False`` + defaults to ``True`` :param threshold: Black pixel threshold for undithered PDF (``0-255``), defaults \ to ``128`` :param dpi: Pixels per PDF canvas unit. This defines the resolution scaling of the \