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

Add support for background_color definition in avatar NFT metadata. #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jwahdatehagh
Copy link

This adds support for the background_color metadata field defined in the OpenSea NFT metadata standard.

I use this for the OneDayPunk collection where the NFT image is transparent, but OpenSea renders the defined background color dynamically. Compare: Metadata and Listings ons OpenSea.

ENS domains with which you can test this:

  • hearsay.eth: /mainnet/0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85/31411427214583513713469664551403800555885474761460246739458092438773891575394/image
  • vincet.eth: /mainnet/0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85/0xb70727ffaffb3b37ce8ee412bba864bf2489ce0120d3d79a0b39e83a685729aa/image

Note/Feedback: I think the architecture / setup here is somewhat complicated and could be further simplified but i didn't want to restructure more than i already have in the context of this pull request. Happy to take a stab though. Also it would be cool to work on support for dynamically rendered avatar backgrounds (being other NFTs, potentially via the header field).

@mdtanrikulu
Copy link
Member

hey there! thank you for adding a new feature 🎉 due to other priority tasks I will keep this just a bit longer in hold. but for sure it's in my todo.

@mdtanrikulu mdtanrikulu self-requested a review December 16, 2021 03:54
@mdtanrikulu mdtanrikulu added the enhancement New feature or request label Dec 16, 2021
@mdtanrikulu
Copy link
Member

hi @jwahdatehagh thank you again for your contribution!! I finally went through the PR and everything looks great to me, just two little notes I am adding on relevant lines.

Regarding architectural changes I agree that there are things need to be simplified and I am making some touches time to time whenever I find a time for it, would be happy of any of your contribution on that regard anytime!

@jwahdatehagh
Copy link
Author

@mdtanrikulu dope, happy to implement any change requests as well!

Just let me know 😀

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

Successfully merging this pull request may close these issues.

2 participants