▣

Image Canvas Extender

Add custom margins and background around an image

No file selected.
preview

Image Canvas Extender — what it does

Add margin around an image on any side independently — top, right, bottom, left — filled with a colour you pick or left transparent. The picture itself is untouched; only the canvas grows, which is how you meet a required aspect ratio without cropping anything out of the frame.

Worked example

Three runs: a 1200 × 300 header banner padded into a square for a social post, a 400 × 400 logo given a transparent 40 px margin, and a 1600 × 1200 photo with a negative left margin to show what the tool does with it.

InputMargins top / right / bottom / leftOutput
header-banner.jpg, 1200 × 300450 / 0 / 450 / 0, background #1e293bheader-banner-extended.png, 1200 × 1200
logo.png, 400 × 40040 / 40 / 40 / 40, transparent tickedlogo-extended.png, 480 × 480
team-photo.jpg, 1600 × 12000 / 0 / 0 / −100team-photo-extended.png, 1600 × 1200 — the −100 is read as 0, nothing added or cut

The status line shows the new size (1200 × 1200) before you download; the file is always a PNG named after the source with -extended added.

When this tool helps

  • Padding a photo to a square canvas for platforms that crop non-square uploads.
  • Adding space at the bottom of an image for a caption or logo bar.
  • Creating breathing room around artwork before printing or framing.

How to use it

  1. Choose the image.
  2. Set the top, right, bottom and left margins.
  3. Pick a background colour, or select transparent.
  4. Process and download the extended image.

Accuracy, limits, and good practice

  • Extending is the non-destructive alternative to cropping: to reach 1:1 you add space rather than cutting the subject's head off.
  • Transparency requires PNG output; a JPEG will fill transparent margins with solid colour.
  • Uneven margins shift the visual centre deliberately — useful when text will sit in the added space.
  • Extending is often better than cropping for a thumbnail: padding keeps the whole composition visible where a square crop would cut the subject.

Frequently asked questions

How do I make an image exactly square?

Compute the difference between width and height, then split it across the two opposite margins to keep the subject centred.

Does this change the image resolution?

The original pixels stay as they are; the canvas around them grows, so the file's overall dimensions increase.

Can I extend by a percentage?

Margins are set in pixels. Work out the pixel value from the source dimensions first if you are thinking in percentages.

Does the added margin affect print size?

Yes, the image grows in pixels, so recalculate the print dimensions with the print size calculator if the output is for paper.

What happens with a negative margin?

It is treated as 0, and so is an empty box: −100 on the left of a 1600 × 1200 photo gives a 1600 × 1200 file with nothing added or removed. The tool only adds space; use the crop tool to trim an image.

Is the background colour used when transparent is ticked?

No. With the box ticked the colour picker is ignored and the added area has zero alpha; untick it and the whole canvas is filled with the colour first, which also fills any transparent parts of the picture itself. The download is PNG either way, so the transparency survives.

Related tools on this site

Everything above runs inside this page. Image Canvas Extender needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

圖片畫布擴展能做什麼

為圖片四邊分別加上邊距——上、右、下、左各自獨立——並填入你選的顏色或保持透明。畫面本身完全不動,只有畫布變大,這正是在不裁掉任何內容的前提下滿足指定比例的做法。

實際範例

三次執行:1200 × 300 的頁首橫幅補成正方形以便社群貼文;400 × 400 的標誌加上透明的 40 px 邊距;以及 1600 × 1200 的照片填入負的左邊距,看看工具會怎麼處理。

輸入邊距 上/右/下/左輸出
header-banner.jpg,1200 × 300450 / 0 / 450 / 0,背景 #1e293bheader-banner-extended.png,1200 × 1200
logo.png,400 × 40040 / 40 / 40 / 40,勾選透明logo-extended.png,480 × 480
team-photo.jpg,1600 × 12000 / 0 / 0 / −100team-photo-extended.png,1600 × 1200——−100 被當成 0,沒有增加也沒有裁切

下載前狀態列就會顯示新尺寸(1200 × 1200);檔案一律是 PNG,檔名為來源檔名加上 -extended。

什麼時候用得上

  • 把照片補成方形,以應付會裁切非方形上傳的平台。
  • 在圖片下方留出空間,放說明文字或商標條。
  • 在列印或裱框前,替作品四周留出呼吸空間。

使用步驟

  1. 選擇圖片。
  2. 設定上、右、下、左的邊距。
  3. 選擇背景色,或選擇透明。
  4. 執行處理並下載擴展後的圖片。

精確度、限制與實務建議

  • 擴展畫布是裁切的非破壞性替代方案:要做成 1:1,是加空間,而不是把人物的頭切掉。
  • 需要透明就必須輸出 PNG;JPEG 會把透明邊距填成實色。
  • 不對稱的邊距會刻意位移視覺中心——當文字要放在新增空間時很好用。
  • 做縮圖時擴展往往勝過裁切:補白能保住完整構圖,方形裁切則會把主體切掉。

常見問題

怎麼把圖片變成正方形?

先算出寬高差,再平均分配到相對的兩邊,主體才會維持置中。

這會改變圖片解析度嗎?

原始像素維持不變,只是外圍畫布變大,所以檔案整體尺寸會增加。

可以用百分比擴展嗎?

邊距以像素設定。若你習慣用百分比,請先依原圖尺寸換算成像素值。

新增的邊距會影響列印尺寸嗎?

會,圖片像素變多了。若輸出要印出來,請用列印尺寸計算器重算實際尺寸。

填負的邊距會怎樣?

會被當成 0,留空的欄位也一樣:在 1600 × 1200 的照片左邊填 −100,得到的仍是 1600 × 1200,沒有增加也沒有切掉任何東西。這個工具只會加邊;要裁掉部分畫面請用裁剪工具。

勾選透明時背景色還有作用嗎?

沒有。勾選後顏色選擇器會被忽略,新增區域的 alpha 為 0;取消勾選則整張畫布先填滿背景色,圖片本身的透明部分也會一併被填上。兩種情況都輸出 PNG,透明得以保留。

本站相關工具

以上步驟全部在這個頁面內完成,圖片畫布擴展 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。