Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prints out distorted colors on Mac terminal #22

Open
yolicap opened this issue Jun 25, 2022 · 6 comments
Open

Prints out distorted colors on Mac terminal #22

yolicap opened this issue Jun 25, 2022 · 6 comments

Comments

@yolicap
Copy link

yolicap commented Jun 25, 2022

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
@github-actions
Copy link

Message that will be displayed on users first issue

@lainq
Copy link
Owner

lainq commented Jun 26, 2022

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

@lainq
Copy link
Owner

lainq commented Jun 26, 2022

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.

@yolicap
Copy link
Author

yolicap commented Jun 28, 2022

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 yolicap closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2022
@yolicap
Copy link
Author

yolicap commented Jun 28, 2022

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

@yolicap yolicap reopened this Jun 28, 2022
@lainq
Copy link
Owner

lainq commented Jun 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants