Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cacalabs/libcaca
Browse files Browse the repository at this point in the history
  • Loading branch information
samhocevar committed Oct 19, 2021
2 parents d5c7775 + ba3c9cc commit 373c88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/examples/img2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
HELP_MSG = """\
Usage: %s [OPTIONS]... <IMAGE>
Convert IMAGE to any text based available format.
Example: %s -w 80 -f ansi ./caca.png
Example: %s -W 80 -f ansi ./caca.png
Options:
-h, --help This help
Expand Down Expand Up @@ -224,7 +224,7 @@ def main():
dit.set_charset(charset)

#create dither
dit.bitmap(cv, 0, 0, width, height, img.tostring())
dit.bitmap(cv, 0, 0, width, height, str(img.tobytes()))

#print export to screen
sys.stdout.write("%s" % cv.export_to_memory(exformat))
Expand Down

0 comments on commit 373c88b

Please sign in to comment.