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

Bad transparency mask for croissants cog #28

Closed
leo-chartier opened this issue Mar 15, 2022 · 0 comments · Fixed by #29
Closed

Bad transparency mask for croissants cog #28

leo-chartier opened this issue Mar 15, 2022 · 0 comments · Fixed by #29
Labels
bug Something isn't working
Projects

Comments

@leo-chartier
Copy link
Contributor

Describe the bug

This bug seems to appear when a Discord user with an animated profile picture triggers the croissant cog.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Discord account
  2. Buy Nitro
  3. Set an animated profile picture
  4. Go on a server where the bot is
  5. Send a message that starts with Je paye les croissants

Expected behavior

Get a response similar to this one:
Expected behaviour

Actual behavior

Nothing happens on Discord. Behind the scenes, the bot raises and error:

Mar 15 10:53:37 warn python3[110192]:     await coro(*args, **kwargs)
Mar 15 10:53:37 warn python3[110192]:   File "/home/warrior/actions-runner/_work/Algosup-Discord/Algosup-Discord/cogs/croissants.py", line 33, in on_receive_message
Mar 15 10:53:37 warn python3[110192]:     await self.__send_croissants(message)
Mar 15 10:53:37 warn python3[110192]:   File "/home/warrior/actions-runner/_work/Algosup-Discord/Algosup-Discord/cogs/croissants.py", line 52, in __send_croissants
Mar 15 10:53:37 warn python3[110192]:     file=self.__get_screenshot(message.author, message.content)
Mar 15 10:53:37 warn python3[110192]:   File "/home/warrior/actions-runner/_work/Algosup-Discord/Algosup-Discord/cogs/croissants.py", line 85, in __get_screenshot
Mar 15 10:53:37 warn python3[110192]:     img.paste(pfp, (16, 16), pfp)
Mar 15 10:53:37 warn python3[110192]:   File "/usr/local/lib/python3.9/dist-packages/PIL/Image.py", line 1557, in paste
Mar 15 10:53:37 warn python3[110192]:     self.im.paste(im, box, mask.im)
Mar 15 10:53:37 warn python3[110192]: ValueError: bad transparency mask

Environment

  • Discord (web browser or app)
@leo-chartier leo-chartier added the bug Something isn't working label Mar 15, 2022
@PaulMarisOUMary PaulMarisOUMary added this to To do in Algobot via automation Mar 15, 2022
PaulMarisOUMary added a commit that referenced this issue Mar 16, 2022
@PaulMarisOUMary PaulMarisOUMary linked a pull request Mar 16, 2022 that will close this issue
6 tasks
@PaulMarisOUMary PaulMarisOUMary mentioned this issue Mar 16, 2022
6 tasks
Algobot automation moved this from To do to Done Mar 16, 2022
PaulMarisOUMary added a commit that referenced this issue Mar 16, 2022
gif duration fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant