> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/th/phatthana/sung-khuen/nft/riang-nft.md).

# เตรียมไฟล์ NFT

การเตรียมไฟล์สำหรับโปรเจกต์ NFT ของคุณประกอบด้วยสองส่วนหลัก:

* ไฟล์ภาพ (สิ่งที่ผู้ใช้มองเห็น)
* metadata (สิ่งที่ blockchain อ่าน)

## ไฟล์ภาพ

นี่คืองานศิลป์ที่คุณต้องการแปลงเป็น NFT

คุณ (หรือทีมออกแบบ) ควรสร้างไฟล์ตามข้อกำหนดต่อไปนี้:

### รูปแบบไฟล์

* ภาพนิ่ง: ใช้ PNG (แนะนำเพื่อคุณภาพ) หรือ JPG
* วิดีโอ: ใช้ MP4\
  \_หากคุณมีการ์ดวิดีโอ ให้สร้างภาพ "thumbnail" แบบนิ่งด้วย เพื่อการโหลดที่ลื่นไหล\_
* วัตถุ 3D: ใช้ GLB หรือ GLTF

### ขนาด (อัตราส่วนภาพ)

โดยทั่วไป NFT มักใช้รูปแบบใดรูปแบบหนึ่งต่อไปนี้:

* รูปแบบสี่เหลี่ยมจัตุรัส: 1080 x 1080 พิกเซล
* รูปแบบแนวตั้ง (Phone/Story): 1080 x 1920 พิกเซล

### ขนาดไฟล์

พยายามให้ไฟล์มีขนาดต่ำกว่า 25MB (ควรต่ำกว่า 10MB) เพื่อการโหลดที่รวดเร็วบน mobile wallet

{% hint style="info" %}

#### เคล็ดลับจากผู้เชี่ยวชาญ

สร้างไฟล์ "Master" ความละเอียดสูง (100MB ขึ้นไป) แต่อย่าใช้เป็นภาพหลักของ NFT แต่ให้ใช้ฟีเจอร์ "[Unlockable Content](https://help.rarible.com/hc/en-us/articles/10460251328653-What-is-unlockable-content)" เพื่อมอบไฟล์ Master ให้เฉพาะเจ้าของ NFT เท่านั้น
{% endhint %}

## Metadata

blockchain ไม่ได้จัดเก็บภาพโดยตรง (เนื่องจากมีค่าใช้จ่ายสูงเกินไป) แต่จะจัดเก็บลิงก์ไปยังไฟล์ข้อความในรูปแบบ JSON ซึ่งหมายความว่าไฟล์ JSON สามารถสร้างได้ก็ต่อเมื่อไฟล์ภาพถูกโฮสต์จริงแล้วเท่านั้น

{% hint style="info" %}
เครื่องมือสมัยใหม่ส่วนใหญ่จะดำเนินการนี้ให้คุณโดยอัตโนมัติ ช่วยให้คุณไม่ต้องทำทุกอย่างด้วยตนเอง
{% endhint %}

ต้องมีไฟล์ JSON หนึ่งไฟล์สำหรับ NFT แต่ละประเภทในคอลเลกชันของคุณ (เช่น JSON หนึ่งไฟล์สำหรับ "NFT 1", หนึ่งไฟล์สำหรับ "NFT 2" เป็นต้น)

ต่อไปนี้คือตัวอย่างไฟล์ JSON ของ NFT:

```json
{
  "name": "Mark Whaleon - 2024/25 Season",
  "description": "The official Striker card for Team X, 2024/25 Season. Gold Tier.",
  "image": "ipfs://YOUR_IMAGE_IPFS_ID_GOES_HERE",
  "external_url": "https://example.com/players/whaleon",
  "attributes": [
    {
      "trait_type": "Position",
      "value": "Striker"
    },
    {
      "trait_type": "Jersey Number",
      "value": "10"
    },
    {
      "trait_type": "Season",
      "value": "2024/2025"
    },
    {
      "trait_type": "Rarity",
      "value": "Gold"
    },
    {
      "display_type": "number",
      "trait_type": "Goals Scored",
      "value": 15
    }
  ]
}
```

{% hint style="info" %}
attributes มีความสำคัญอย่างยิ่งสำหรับการ์ดที่เกี่ยวข้องกับกีฬา ช่วยให้แฟนๆ สามารถกรองตาม "Position", "Season" หรือ "Rarity" บน marketplace ต่างๆ ได้
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chiliz.com/th/phatthana/sung-khuen/nft/riang-nft.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
