Skip to content

fix(assets): replace .gif asset format to webp for animated assets#3294

Open
SilberGecko6917 wants to merge 5 commits into
Pycord-Development:masterfrom
SilberGecko6917:fix/asset-extentions
Open

fix(assets): replace .gif asset format to webp for animated assets#3294
SilberGecko6917 wants to merge 5 commits into
Pycord-Development:masterfrom
SilberGecko6917:fix/asset-extentions

Conversation

@SilberGecko6917

@SilberGecko6917 SilberGecko6917 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR changes the .gif asset extention for avatars, banners and other images to the .webp extention.

https://docs.discord.com/developers/reference#image-formatting
image

I noticed that if a user had an animated profile picture, the URL of the image returned a 415 Unsupported Media Type error. For example, here:
https://cdn.discordapp.com/guilds/1010915072694046794/users/851762178532311050/avatars/a_8a63bc5a3a227954876eb04778006c13.gif?size=1024

but with webp it works:
https://cdn.discordapp.com/guilds/1010915072694046794/users/851762178532311050/avatars/a_8a63bc5a3a227954876eb04778006c13.webp?animated=true&size=1024

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.
  • AI Usage has been disclosed.
    • If AI has been used, I understand fully what the code does

@SilberGecko6917 SilberGecko6917 requested review from a team, Lulalaby and Lumabots July 2, 2026 13:27
@github-project-automation github-project-automation Bot moved this to Todo in Pycord Jul 2, 2026
@SilberGecko6917 SilberGecko6917 requested a review from a team as a code owner July 2, 2026 13:27
@pycord-app

pycord-app Bot commented Jul 2, 2026

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3294/head:pr-3294
git checkout pr-3294

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3294/head

@SilberGecko6917 SilberGecko6917 requested a review from a team as a code owner July 2, 2026 13:29
@SilberGecko6917 SilberGecko6917 requested review from a team, Icebluewolf and JustaSqu1d July 2, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant