> ## Documentation Index
> Fetch the complete documentation index at: https://docs.happycapy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 圖片生成與編輯

> 在 Project 裡生成、修改、混合圖片並準備參考圖

## 什麼是圖片生成與編輯？

圖片生成與編輯可以讓你在一個 Project 裡生成新圖、修改既有圖片，並把多張視覺參考組合成一個結果。它適合用來做封面圖、產品圖、活動視覺、影片參考幀，以及其他需要和專案檔案保存在一起的靜態圖片。

先說你想要的結果，不要先從模型名開始。Happycapy 可以幫你選擇合適路徑，把輸出保存到 Files，並把提示詞、參考圖和生成結果放在同一個 Project 裡，方便之後繼續迭代。

## 三種開始方式

根據你手上已經有的輸入開始：文字、一張圖片，或多張參考圖。

### 1. 從文字開始

直接描述你想要的圖片。Happycapy 可以生成圖片，並把它和其他 Project 檔案保存在一起。

<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))', gap: '1rem', margin: '1rem 0 2rem' }}>
  <div style={{ gridColumn: '1 / -1', border: '1px solid rgba(46, 41, 41, 0.1)', borderRadius: '12px', overflow: 'hidden', background: '#fffdf9' }}>
    <div style={{ padding: '1.1rem' }}>
      <div style={{ fontSize: '0.78rem', textTransform: 'uppercase', letterSpacing: '0.08em', color: '#df7657', fontWeight: 750 }}>Text to image</div>
      <h3 style={{ margin: '0.35rem 0 0.55rem', fontSize: '1.3rem' }}>用文字生成一張文件封面圖</h3>
      <p style={{ margin: '0 0 1rem', color: '#6e6861', fontSize: '0.95rem', lineHeight: 1.55 }}>從你想要的最終畫面說起。Happycapy 可以生成圖片，並把它和這個 Project 的其他檔案保存在一起。</p>

      <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(240px, 1fr))', gap: '1.25rem', alignItems: 'stretch' }}>
        <div style={{ height: '100%', padding: '0.85rem', borderRadius: '9px', background: '#f8f6f2', color: '#4d4640', fontSize: '0.86rem', lineHeight: 1.55 }}>
          <p style={{ margin: '0 0 0.65rem', color: '#8a8178', fontWeight: 700 }}>告訴 Happycapy</p>
          <code style={{ whiteSpace: 'pre-wrap' }}>Create a 4:5 Happycapy-style illustration for a docs page about image generation.{"\n\n"}Show a calm capybara arranging blank image cards into one finished artwork. Use bright daylight, clean editorial illustration, paper grain, and no readable text.{"\n\n"}Save it as outputs/image-generation-cover.png.</code>
        </div>

        <div style={{ justifySelf: 'center', alignSelf: 'start', width: 'min(100%, 340px)', margin: 0 }}>
          <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-generation-cover.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=48b5fdecf36daa6805587c4d5d30ab86" alt="Happycapy 風格的圖片生成文件示例圖" style={{ display: 'block', width: '100%', margin: 0, aspectRatio: '4 / 5', objectFit: 'cover', borderRadius: '12px', border: '1px solid rgba(46, 41, 41, 0.1)', boxShadow: '0 18px 40px rgba(46, 41, 41, 0.08)' }} width="1122" height="1402" data-path="images/features/image-generation-cover.png" />
        </div>
      </div>
    </div>
  </div>
</div>

### 2. 編輯一張圖片

上傳一張圖片，讓 Happycapy 在保留關鍵主體的同時，修改細節、版式、背景、風格或局部區域。

<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))', gap: '1rem', margin: '1rem 0 2rem' }}>
  <div style={{ gridColumn: '1 / -1', border: '1px solid rgba(46, 41, 41, 0.1)', borderRadius: '12px', overflow: 'hidden', background: '#fffdf9' }}>
    <div style={{ padding: '1.1rem' }}>
      <div style={{ fontSize: '0.78rem', textTransform: 'uppercase', letterSpacing: '0.08em', color: '#df7657', fontWeight: 750 }}>Edit an image</div>
      <h3 style={{ margin: '0.35rem 0 0.55rem', fontSize: '1.3rem' }}>把普通產品圖改成活動海報</h3>
      <p style={{ margin: '0 0 1rem', color: '#6e6861', fontSize: '0.95rem', lineHeight: 1.55 }}>上傳一張簡單產品圖。讓 Happycapy 保持產品可辨識，同時改變版式、燈光、道具和海報文字。</p>

      <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, minmax(0, 1fr))', gap: '0.75rem', marginBottom: '1rem' }}>
        <div>
          <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-edit-before-mug.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=c9771a04ae657bda4f79e9184324364c" alt="編輯前的馬克杯產品圖" style={{ display: 'block', width: '100%', aspectRatio: '4 / 5', objectFit: 'cover', borderRadius: '12px', border: '1px solid rgba(46, 41, 41, 0.1)' }} width="1122" height="1402" data-path="images/features/image-edit-before-mug.png" />

          <div style={{ marginTop: '0.45rem', color: '#8a8178', fontSize: '0.78rem', fontWeight: 700, textTransform: 'uppercase', letterSpacing: '0.08em' }}>Before</div>
        </div>

        <div>
          <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-edit-after-mug-poster.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=8ae661da753de93bf6633785b41ff6da" alt="編輯後的馬克杯活動海報" style={{ display: 'block', width: '100%', aspectRatio: '4 / 5', objectFit: 'cover', borderRadius: '12px', border: '1px solid rgba(46, 41, 41, 0.1)', boxShadow: '0 18px 40px rgba(46, 41, 41, 0.08)' }} width="1003" height="1568" data-path="images/features/image-edit-after-mug-poster.png" />

          <div style={{ marginTop: '0.45rem', color: '#df7657', fontSize: '0.78rem', fontWeight: 750, textTransform: 'uppercase', letterSpacing: '0.08em' }}>After</div>
        </div>
      </div>

      <div style={{ padding: '0.85rem', borderRadius: '9px', background: '#f8f6f2', color: '#4d4640', fontSize: '0.86rem', lineHeight: 1.55 }}>
        <p style={{ margin: '0 0 0.65rem', color: '#8a8178', fontWeight: 700 }}>告訴 Happycapy</p>
        <code style={{ whiteSpace: 'pre-wrap' }}>Edit the uploaded product photo.{"\n\n"}Keep the mug recognizable, but turn it into a 4:5 product campaign poster. Add clear poster typography with the headline “MORNING RITUAL” and the small label “CERAMIC MUG”.{"\n\n"}Use warm studio lighting, a premium editorial layout, soft shadows, and simple lifestyle props. Save it as outputs/mug-campaign-poster.png.</code>
      </div>
    </div>
  </div>
</div>

### 3. 組合多張參考圖

上傳多張圖片，並告訴 Happycapy 每張圖控制什麼：品牌標識、主體、材質、氛圍、版式或場景。

<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(250px, 1fr))', gap: '1rem', margin: '1rem 0 2rem' }}>
  <div style={{ gridColumn: '1 / -1', border: '1px solid rgba(46, 41, 41, 0.1)', borderRadius: '12px', overflow: 'hidden', background: '#fffdf9' }}>
    <div style={{ padding: '1.1rem' }}>
      <div style={{ fontSize: '0.78rem', textTransform: 'uppercase', letterSpacing: '0.08em', color: '#df7657', fontWeight: 750 }}>Multi-reference</div>
      <h3 style={{ margin: '0.35rem 0 0.55rem', fontSize: '1.3rem' }}>用三張參考圖生成周邊活動海報</h3>
      <p style={{ margin: '0 0 1rem', color: '#6e6861', fontSize: '0.95rem', lineHeight: 1.55 }}>一張圖控制品牌標識，一張圖控制周邊物品，一張圖控制活動氛圍。關鍵是告訴 Happycapy 每張參考圖各自負責什麼。</p>

      <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(260px, 1fr))', gap: '1.25rem', alignItems: 'start' }}>
        <div style={{ display: 'grid', gap: '0.75rem' }}>
          <div style={{ display: 'grid', gridTemplateColumns: '84px minmax(0, 1fr)', gap: '0.75rem', alignItems: 'center', padding: '0.7rem', borderRadius: '10px', background: '#f8f6f2' }}>
            <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-ref-happycapy-logo.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=ff2087580b0aecea61c9d618db21db41" alt="Happycapy 標識參考圖" style={{ display: 'block', width: '84px', height: '84px', objectFit: 'cover', borderRadius: '8px', border: '1px solid rgba(46, 41, 41, 0.1)' }} width="1254" height="1254" data-path="images/features/image-ref-happycapy-logo.png" />

            <div>
              <div style={{ color: '#df7657', fontSize: '0.78rem', fontWeight: 750, textTransform: 'uppercase', letterSpacing: '0.08em' }}>Image 1</div>
              <p style={{ margin: '0.2rem 0 0', color: '#4d4640', fontSize: '0.88rem', lineHeight: 1.45 }}>控制 Happycapy 的品牌標識和線條圖標特徵。</p>
            </div>
          </div>

          <div style={{ display: 'grid', gridTemplateColumns: '84px minmax(0, 1fr)', gap: '0.75rem', alignItems: 'center', padding: '0.7rem', borderRadius: '10px', background: '#f8f6f2' }}>
            <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-ref-merch-objects.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=ade0a16c4a6c926d10e030ac59f88dd5" alt="空白周邊物品參考圖" style={{ display: 'block', width: '84px', height: '84px', objectFit: 'cover', borderRadius: '8px', border: '1px solid rgba(46, 41, 41, 0.1)' }} width="1254" height="1254" data-path="images/features/image-ref-merch-objects.png" />

            <div>
              <div style={{ color: '#df7657', fontSize: '0.78rem', fontWeight: 750, textTransform: 'uppercase', letterSpacing: '0.08em' }}>Image 2</div>
              <p style={{ margin: '0.2rem 0 0', color: '#4d4640', fontSize: '0.88rem', lineHeight: 1.45 }}>控制周邊物品、材質和產品視角。</p>
            </div>
          </div>

          <div style={{ display: 'grid', gridTemplateColumns: '84px minmax(0, 1fr)', gap: '0.75rem', alignItems: 'center', padding: '0.7rem', borderRadius: '10px', background: '#f8f6f2' }}>
            <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-ref-campaign-layout.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=c50a41ca0494509b045195a9b4caa4fd" alt="活動版式和氛圍參考圖" style={{ display: 'block', width: '84px', height: '84px', objectFit: 'cover', borderRadius: '8px', border: '1px solid rgba(46, 41, 41, 0.1)' }} width="1254" height="1254" data-path="images/features/image-ref-campaign-layout.png" />

            <div>
              <div style={{ color: '#df7657', fontSize: '0.78rem', fontWeight: 750, textTransform: 'uppercase', letterSpacing: '0.08em' }}>Image 3</div>
              <p style={{ margin: '0.2rem 0 0', color: '#4d4640', fontSize: '0.88rem', lineHeight: 1.45 }}>控制海報氛圍、配色、光線和版式。</p>
            </div>
          </div>
        </div>

        <div style={{ justifySelf: 'center', width: 'min(100%, 360px)' }}>
          <img src="https://mintcdn.com/happycapy/h9_vLtvDfrXu5HTP/images/features/image-output-happycapy-merch-poster.png?fit=max&auto=format&n=h9_vLtvDfrXu5HTP&q=85&s=ba7da75274a135ea40693b614999f892" alt="生成的 Happycapy 周邊活動海報" style={{ display: 'block', width: '100%', aspectRatio: '4 / 5', objectFit: 'cover', objectPosition: 'center top', borderRadius: '12px', border: '1px solid rgba(46, 41, 41, 0.1)', boxShadow: '0 18px 40px rgba(46, 41, 41, 0.08)' }} width="1003" height="1568" data-path="images/features/image-output-happycapy-merch-poster.png" />
        </div>
      </div>

      <div style={{ marginTop: '1rem', padding: '0.85rem', borderRadius: '9px', background: '#f8f6f2', color: '#4d4640', fontSize: '0.86rem', lineHeight: 1.55 }}>
        <p style={{ margin: '0 0 0.65rem', color: '#8a8178', fontWeight: 700 }}>告訴 Happycapy</p>
        <code style={{ whiteSpace: 'pre-wrap' }}>Use image 1 as the Happycapy brand mark reference. Keep the simple capybara line icon recognizable, but use it as a tasteful logo on the products.{"\n\n"}Use image 2 to control the merch objects, materials, and product perspective. Use image 3 to control the campaign mood, color palette, lighting, and layout.{"\n\n"}Create one 4:5 editorial campaign poster for a fictional Happycapy merch drop. Show the logo applied to the merch objects in a clean, premium way. Save it as outputs/happycapy-merch-campaign.png.</code>
      </div>
    </div>
  </div>
</div>

## 相關資源

* [Files](/zh-Hant/features/files)：在 Project 裡管理上傳的參考圖、生成圖片和 `outputs/` 檔案。
* [AI Image Generator](https://happycapy.ai/tools/ai-image-generator)：查看更多圖片提示詞思路，也可以直接嘗試圖片生成。
