Skip to content

Issue with Metadata (Json) where we have multiples characters per image #174

Description

@DevPratyush

Thanks to @nftchef for creating this fork! I have been facing an issue and attempted many ways but it didn't get resolved.
Actually, I wanted to create a collection where we have 5 characters per image. We have traits for each character. Let me explain the structure of the folder.

I-Heroes
|--Hero 1
I----Hairs
l------Blackhair.png
l------Blondhair.png
l------Brownhair.png
I----Cloth
l------Blackcloth.png
l------Whitecloth.png
l------YellowCloth.png
I----Skin
l------Blackskin.png
l------Brownskin.png
l------Whiteskin.png

|--Hero 2
I----Hairs
l------Blackhair.png
l------Blondhair.png
l------Brownhair.png
I----Cloth
l------Blackcloth.png
l------Whitecloth.png
l------YellowCloth.png
I----Skin
l------Blackskin.png
l------Brownskin.png
l------Whiteskin.png

|--Hero 3
I----Hairs
l------Blackhair.png
l------Blondhair.png
l------Brownhair.png
I----Cloth
l------Blackcloth.png
l------Whitecloth.png
l------YellowCloth.png
I----Skin
l------Blackskin.png
l------Brownskin.png
l------Whiteskin.png

|--Hero 4
I----Hairs
l------Blackhair.png
l------Blondhair.png
l------Brownhair.png
I----Cloth
l------Blackcloth.png
l------Whitecloth.png
l------YellowCloth.png
I----Skin
l------Blackskin.png
l------Brownskin.png
l------Whiteskin.png

|--Hero 5
I----Hairs
l------Blackhair.png
l------Blondhair.png
l------Brownhair.png
I----Cloth
l------Blackcloth.png
l------Whitecloth.png
l------YellowCloth.png
I----Skin
l------Blackskin.png
l------Brownskin.png
l------Whiteskin.png

I-Background
I-Birds

Now, the generator works well for this but its metadata is not well structurally organized. It is how metadata is shown.
image
{ "trait_type": "Background", "value": "background 2" }, { "trait_type": "Birds", "value": "birds 2" }, { "trait_type": "Hero 1", "value": " Skin" }, { "trait_type": " Cloth ", "value": "Black Cloth" }, { "trait_type": " Hair", "value": "dark brown" } { "trait_type": "Hero 2", "value": " Skin" }, { "trait_type": " Cloth ", "value": "Black Cloth" }, { "trait_type": " Hair", "value": "dark brown" }

There are three issues here -

  1. The structure is not good for multiple characters exist in each image

  2. It does not tell the value of Skin. See how it writes:
    "trait_type": "Hero 2",
    "value": " Skin"

  3. The metadata does not tell Hair, Skin and Cloth are the traits of Heroes.

Can anyone help me to make the metadata organized for this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions