Add more image files to a product and what implications it has
Linking images to metadata and storing them on IPFS is a process commonly used in the blockchain and crypto world, especially in the creation of NFTs (Non-Fungible Tokens). Here's how it works:
Create Metadata: First, metadata is created for the product. This metadata contains information about the product, such as title, description, artist (if applicable), properties, and other relevant details.
Add Images to Metadata: The first image added to the product is linked to the metadata. This is done by inserting a reference to the image in the metadata. This reference can be a URL or an IPFS hash.
Storage on IPFS: IPFS (InterPlanetary File System) is a distributed file system used to store and access content peer-to-peer. The first image linked to the metadata is uploaded to IPFS and stored there. The IPFS hash of this image is then stored in the metadata.
Linking Metadata to the Product: The metadata containing the first image is linked to the product it pertains to, often by storing the metadata in a smart contract on the blockchain that manages ownership rights and other information about the product.
Use IPFS Link for Display: When someone views or accesses the product, they can retrieve the metadata to get all the relevant information. The IPFS link to the first image can be used to retrieve and display the image.
Using metadata and IPFS in this way allows for decentralized storage of information and images associated with a specific product. This is particularly useful in applications like NFTs where the authenticity and uniqueness of a digital asset are important.
To add images to a product, follow these steps:
Go to Catalog -> Products.
Select the corresponding product.
Click on Edit.
In the product menu, navigate to Media Files.
To mint products, an image must be added.
Choose the appropriate image and add it to the product.
Save the changes.
Last updated