Image Border & Shadow
Add padding, border, and a soft shadow around an image
Image Border & Shadow — what it does
Add padding, a solid border and a soft drop shadow around an image, with control over border width and colour, padding, shadow blur, offset and colour. It is the finishing pass that makes a bare screenshot look deliberate on a slide, a blog post or a documentation page.
Worked example
A 1600 × 1200 team photo with an 8 px blue (#1e5eff) border, 20 px padding, 24 px shadow blur and 10 px offset; then the same photo with every value at 0; then a 400 × 400 logo with smaller values and a negative offset. Every download is border-shadow.png.
| Input | Border / padding / blur / offset | Output border-shadow.png |
|---|---|---|
| team-photo.jpg, 1600 × 1200 | 8 / 20 / 24 / 10 | 1772 × 1372 — 86 px added on every side |
| team-photo.jpg, 1600 × 1200 | 0 / 0 / 0 / 0 | 1600 × 1200 — same size, still re-saved as PNG |
| logo.png, 400 × 400 | 4 / 12 / 16 / −6 | 508 × 508 — 54 px added on every side |
The margin added per side is border + padding + 2 × blur + |offset| (8 + 20 + 48 + 10 = 86), so the shadow is never clipped. In the first row the padding band is pure white (#FFFFFF); only the outer 8 px ring carries the blue border colour.
When this tool helps
- Framing screenshots for a presentation so they separate visually from the slide background.
- Giving blog or documentation images a consistent, polished treatment.
- Adding a white border and shadow to photos before posting them to social platforms.
How to use it
- Choose the image.
- Set border width and colour, and the padding amount.
- Adjust shadow blur, offset and colour.
- Process and download the finished image.
Accuracy, limits, and good practice
- A white or near-white padding band plus a soft grey shadow is the classic look, and it works on almost any background.
- Keep shadow offset small relative to blur; large offsets with tight blur read as a hard duplicate rather than depth.
- The exported image grows by the padding and border, so account for the new dimensions if a template expects an exact size.
Frequently asked questions
Is the shadow transparent in the export?
The result is a raster image. Choose a padding colour that matches your destination background when transparency is not preserved.
Can I round the corners too?
The rounded image and border tool handles corner radius along with background and border.
Will this reduce image quality?
The original pixels are copied unchanged; only the surrounding frame is added around them.
Can the padding be a colour other than white?
No. The band between the picture and the border is always filled with white; the border colour you choose forms only the outer ring, and the shadow colour sits outside that. For a coloured mat, set padding to 0 and use a wide border instead.
Does a negative shadow offset work?
Yes. A negative value moves the shadow up and to the left, and the canvas grows by the absolute value so nothing is cut off. The same number is applied to both axes — there is no separate horizontal and vertical offset.
Related tools on this site
- Screenshot Stitcher — Join multiple screenshots vertically or horizontally
- Device Mockup Generator — Place a screenshot inside phone, browser, or laptop frames
- Crop Image — Crop an image using precise pixel coordinates
Further reading: Getting images ready for the web, email and social media
Everything above runs inside this page. Image Border & Shadow needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
圖片邊框與陰影能做什麼
為圖片加上內距、實色邊框與柔和陰影,邊框寬度與顏色、內距、陰影模糊、位移與顏色都可調整。這是收尾的一道工序,讓一張裸截圖在投影片、部落格文章或說明文件上看起來是刻意設計過的。
實際範例
一張 1600 × 1200 的團體照加上 8 px 藍色(#1e5eff)邊框、20 px 留白、24 px 陰影模糊與 10 px 位移;接著同一張照片全部設為 0;最後是 400 × 400 的標誌用較小的數值與負位移。每次下載都是 border-shadow.png。
| 輸入 | 邊框/留白/模糊/位移 | 輸出 border-shadow.png |
|---|---|---|
| team-photo.jpg,1600 × 1200 | 8 / 20 / 24 / 10 | 1772 × 1372——每邊加 86 px |
| team-photo.jpg,1600 × 1200 | 0 / 0 / 0 / 0 | 1600 × 1200——尺寸不變,仍重新存成 PNG |
| logo.png,400 × 400 | 4 / 12 / 16 / −6 | 508 × 508——每邊加 54 px |
每邊增加的寬度是邊框 + 留白 + 2 × 模糊 + |位移|(8 + 20 + 48 + 10 = 86),所以陰影永遠不會被裁掉。第一列的留白帶是純白(#FFFFFF),只有最外圈 8 px 帶有藍色邊框色。
什麼時候用得上
- 為簡報截圖加框,讓它在投影片背景上清楚分離。
- 讓部落格或文件圖片有一致、精緻的處理風格。
- 發到社群平台前,替照片加上白邊與陰影。
使用步驟
- 選擇圖片。
- 設定邊框寬度與顏色,以及內距大小。
- 調整陰影模糊、位移與顏色。
- 執行處理並下載成品。
精確度、限制與實務建議
- 白色或接近白色的內距搭配柔灰陰影是經典組合,幾乎在任何背景上都成立。
- 陰影位移相對模糊要小;位移大又模糊小,看起來像硬邊複製而不是層次。
- 匯出圖片會因內距與邊框而變大,若版型要求精確尺寸,請把新尺寸算進去。
常見問題
匯出的陰影是透明的嗎?
結果是點陣圖。若無法保留透明,請把內距顏色設成與目的背景相同。
可以順便做圓角嗎?
圓角圖片與邊框工具可同時處理圓角半徑、背景與邊框。
這會降低畫質嗎?
原始像素原樣複製,只是在外圍加上外框,不影響畫面本身。
留白可以用白色以外的顏色嗎?
不行。圖片與邊框之間那一圈永遠填白色;你選的邊框色只構成最外圈,陰影色則在更外面。想要有色襯底,請把留白設為 0,改用較寬的邊框。
陰影位移可以填負數嗎?
可以。負值會把陰影往左上移,畫布也會依絕對值放大,不會裁掉任何部分。同一個數字同時套用在水平與垂直方向——沒有分開的橫向與縱向位移。
本站相關工具
延伸閱讀: 為網頁、電子郵件與社群媒體準備圖片
以上步驟全部在這個頁面內完成,圖片邊框與陰影 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。