How to Ensure NFT Metadata Displays Images and Media Correctly on JPG Store
Properly configuring your NFT metadata is essential to ensure media displays correctly on JPG Store. Follow the best practices outlined below to avoid common issues and enhance your NFTs' visual presentation.
Key Guidelines for NFT Metadata and Media Display
Include All Media Files Correctly: - Ensure that each media file is listed only once in the files array of your metadata. - Avoid including duplicate entries for assets such as cover images, as this can interfere with proper media display. - Correctly define the mediaType and file source for each asset: - For image files: Use the appropriate type, such as image/jpg for JPGs or image/png for PNGs. - For audio files: Specify the correct types, e.g., audio/mpeg for MP3 files. - Accurate file paths or URLs should be linked to the respective files to prevent loading issues.
Match Media Types to Files: - Ensure the media type declared in your metadata matches the actual type of your uploaded files on IPFS. For example: - If your file on IPFS is a PNG, specify image/png in the metadata. - Avoid mismatches such as labeling a JPG file as JPEG incorrectly. - Consistently use the same format across all items in the collection to streamline compatibility.
Verify File Uploads and Paths: - Make sure all media files are successfully uploaded to IPFS. - Check that each file is reachable at the specified URL or file path in your metadata to avoid broken links.
Optimize Metadata for CIP-25 Compliance: - If the value of the image field in your metadata exceeds 64 characters, consider splitting this value into an array of strings as allowed by CIP-25 standards. - This ensures adherence to technical constraints and avoids issues with metadata display.
Frequently Encountered Issues
Duplicate file entries: Results in media files failing to load.
Metadata and file type mismatches: Prevents files from being displayed.
Incorrect IPFS paths: Causes media files to be inaccessible.
By adhering to these guidelines, you can ensure your NFTs are displayed properly on JPG Store, enhancing their appeal and accessibility to potential buyers.