img icon indicating copy to clipboard operation
img copied to clipboard

Prints out distorted colors on Mac terminal

Open yolicap opened this issue 2 years ago • 6 comments

Describe the bug DrawImage.draw_image() seems to fail when using the default Mac terminal. It almost seems that colors are printed at random. However, the output from PyCharm terminal had no issue printing the image.

To Reproduce Using Mac terminal. I ran the following lines of code: from image import DrawImage pfp = DrawImage.from_url(url-to-image, (32, 32)) pfp.draw_image()

View from Mac default terminal View from default Mac terminal

View from PyCharm terminal View from PyCharm terminal

  • Device: MacBookPro15
  • OS: macOS Catalina 10.15.7 19H1417 x86_64

yolicap avatar Jun 25 '22 19:06 yolicap

Message that will be displayed on users first issue

github-actions[bot] avatar Jun 25 '22 19:06 github-actions[bot]

Thanks for opening the issue, I'll look into it

lainq avatar Jun 26 '22 06:06 lainq

Can you please run the program on another terminal emulator(preferably iterm) and send the results to make sure that the problem isn't with the mac terminal. Thanks.

lainq avatar Jun 26 '22 07:06 lainq

I tried it out with iterm, seems to work better (https://iterm2.com/).

Here are the results: Screen Shot 2022-06-28 at 1 08 22 PM

yolicap avatar Jun 28 '22 18:06 yolicap

sorry, i didn't mean to close the issue...

yolicap avatar Jun 28 '22 18:06 yolicap

The reason might be that ANSI colors is disabled in your mac terminal settings. You might have to check that.

lainq avatar Jun 29 '22 08:06 lainq