ccwalletio / tracker

An issue tracker for ccwallet.io feature requests
25 stars 2 forks source link

Feature Request: Support for image metadata split into array on Tokens List page #137

Closed perplexusdev closed 1 year ago

perplexusdev commented 1 year ago

IPFS Content Identifier v1 is 66 bytes in length, so it must be split into an array when used in cardano metadata to avoid the <=64 bytes per line constraint. When this technique is used for the "image" attribute of NFT metadata (following https://cips.cardano.org/cips/cip25/), the metadata will not be read properly by Eternl and the image will not display in the Account/Tokens List page.

MarcelKlammer commented 1 year ago

Please provide a reference token / metadata we can take a look at.

perplexusdev commented 1 year ago
image

Test 6 uses IPFS CID v1 in the image attribute. It is an array of two strings, per https://cips.cardano.org/cips/cip25/. It would not display properly in eternl.

Test 7 uses IPFS CID v0 in the image attribute. It is just a string.

The following screenshot is from CIP25

image

The image value may be a URI (string) or an array

Scitz0 commented 1 year ago

Since version 1.9.8 we load images from external CDN as primary source. If this fails we fall back to own parsing. And to me the parsing looks correct. If the content of image fields is an array its joined into a single string.