Image Overlay 瀏覽器工具可在五個固定位置之一,將所選的浮水印疊加繪製於底圖之上,並明確指定縮放百分比與不透明度,將兩張圖片合併為單一 PNG,且全程都在瀏覽器本地端執行,兩個來源檔案皆不會上傳至伺服器。

Cities: Skylines 玩家經常需要將兩張圖片合併成一張。常見的用途如下:在分享城市畫面之前加上透明的頻道標誌或浮水印、在教學文章中將高度圖參考資料疊加於遊戲內地圖視圖上、為縮圖加上角落徽章,或是在模組教學指南中將 UI 模型預覽疊加於底層地形擷取畫面之上。在所有情況下,基本任務都相同:將一張圖片以特定位置、縮放比例與透明度疊加於另一張圖片之上。Cities: Skylines 本身並未內建專為螢幕擷取畫面設計的圖片疊加編輯器,而大多數重量級的相片應用程式不是需要將圖片上傳到遠端伺服器,就是要求使用者學習多圖層工作流程才能堆疊兩張圖片。Image Overlay 工具以專注且可預測的工作流程補足這個缺口,完全在瀏覽器分頁內執行,因此你能在不將城市畫面擷取圖傳送給任何第三方服務的情況下,產出合併後的 PNG。

how to use image overlay cities skylines
how to use image overlay cities skylines

為什麼 Cities: Skylines 玩家會選擇 Image Overlay

Cities: Skylines 是一款沙盒類城市建造遊戲,而 YouTube、Reddit、Discord 及模組討論區上圍繞這款遊戲的許多內容,都仰賴圖片合併。常見需求之一是在發布城市擷取畫面之前,疊加透明的頻道標誌或浮水印,因為原始螢幕擷取畫面通常本身並未帶有任何識別標記。另一個常見任務是將規劃圖、高度圖參考資料或分區計畫疊加於遊戲內螢幕擷取畫面之上,以用於教學或社群指南。模組製作者有時會將疊加圖片(自訂素材剪影、UI 模型、建築底圖)預覽於底層地形擷取畫面上,以比較配置,而無需開啟完整的設計程式。在所有這些情況中,工作流程皆可簡化為:挑選底圖、挑選浮水印圖、選擇位置、決定浮水印的大小、決定其透明度,然後匯出一張 PNG。

瀏覽器式圖片疊加工具特別適合此工作流程,因為 Cities: Skylines 擷取畫面已以 JPG 或 PNG 格式儲存於電腦中。你不需要將數 MB 大的城市螢幕擷取畫面上傳到雲端編輯器,不需要等待下載連結,也不需要閱讀一份針對休閒遊戲擷取畫面所制定的隱私權政策。Image Overlay 工具完整保留底圖原始解析度,這對於銳利的縮圖和高 DPI 顯示器非常重要,而且它提供五個固定位置,而不是難以目視對齊的自由拖曳工具。由於輸出檔案永遠與底圖的精確寬度與高度一致,產生的 PNG 可直接放入與原始螢幕擷取畫面相同的縮圖位置或社群媒體版面配置中。

Image Overlay 工具的實際功能

Image Overlay 工具接受兩張靜態圖片(底圖與浮水印),並產出一張同時包含兩者的 PNG。底圖決定輸出畫布,因此一張 1920x1080 的 Cities: Skylines 螢幕擷取畫面會產生一張 1920x1080 的 PNG,沒有隱藏的縮放、沒有自動符合螢幕,也沒有悄悄套用的匯出限制裁切。浮水印繪製於底圖之上,位置為以下五個之一:左上、右上、左下、右下或置中。位置以數學方式計算,而非目測,因此角落放置會與底圖邊緣精準對齊,即使尺寸為奇數,置中位置仍會保持數學上的置中。

你可控制浮水印的兩個項目:其縮放比例,以自身原始尺寸的百分比表示;以及不透明度,以百分比表示。縮放比例範圍為 10% 至 200%,涵蓋從小型角落徽章到原始尺寸兩倍大的浮水印。不透明度範圍為 0%(完全透明,但仍會進行繪製)至 100%(使用浮水印自身的 alpha 值,不做變更)。所有輸出皆為 PNG,此格式可在沒有任一圖片貢獻色彩的位置保留透明度。在底層運作中,渲染器會清除畫布、以 alpha 值 1 完整繪製底圖、儲存繪製狀態、套用所選的浮水印 alpha 值、依規劃座標繪製縮放後的浮水印,然後還原狀態,這與 MDN drawImage 參考文件 中所記錄的行為一致。

將第二張圖片疊加至螢幕擷取畫面

當你想將 Cities: Skylines 螢幕擷取畫面與第二張圖片(例如標誌、浮水印、徽章或參考圖)合併時,請依以下精確的工作流程進行。

  1. 挑選底圖。這是你的 Cities: Skylines 螢幕擷取畫面、地圖視圖或地形擷取畫面。檔案必須為 JPG、PNG 或 WebP 格式,大小在 25 MiB(26,214,400 位元組)以內,邊長在 20,000 像素以內,且瀏覽器解碼後的總像素預算在 40,000,000 像素以內。
  2. 挑選浮水印圖。這是你想疊加在上方的標誌、浮水印圖檔、徽章或參考圖。相同的格式與大小限制皆適用,且每個輸入會獨立檢查。
  3. 選擇位置。從置中、左上、右上、左下或右下中挑選。從左上開始時,浮水印的 x=0、y=0。從右上時,以底圖寬度減去縮放後的浮水印寬度。從左下時,以底圖高度減去縮放後的浮水印高度。從右下時則同時進行兩項計算。置中時,以對應的底圖尺寸減去縮放後的尺寸,並將差值各除以二。
  4. 設定浮水印縮放比例。輸入介於 10% 至 200% 之間的百分比。100% 會以浮水印自身的原始寬度與高度繪製。50% 會將每個維度縮為一半。200% 會將每個維度放大為兩倍。由於兩個維度皆使用相同的倍率,浮水印的長寬比會保持不變。
  5. 設定不透明度。輸入介於 0% 至 100% 之間的百分比。零會使浮水印完全透明,但仍會產生一張與底圖同尺寸的 PNG。100 會使用浮水印自身的 alpha 值,不進行變更。中間值會以該全域 alpha 乘上浮水印的貢獻,且 PNG 或 WebP 中已存在的任何透明像素會保持透明。
  6. 建立合成圖。點擊執行動作以建立 PNG。工具會清除畫布、完整繪製底圖、儲存繪製狀態、套用所選的浮水印 alpha 值、依規劃座標繪製縮放後的浮水印,然後還原狀態。
  7. 檢查預覽並下載 PNG。頁面上的預覽是依頁面版面配置調整大小,但實際下載的檔案永遠使用底圖的原始寬度與高度。儲存 PNG 並以完整尺寸檢查,以確認對齊是否正確。

若想進行變更(例如更換檔案、變更位置、變更縮放比例或變更不透明度),選取新檔案或編輯任一控制項會立即撤銷先前的結果,因此你不會不小心下載到舊的 PNG。

理解位置、縮放比例與不透明度

位置的選擇是確定性的,讓你在點擊之前就能輕鬆規劃結果。下表顯示在 100% 縮放比例下,1920x1080 底圖與 400x100 浮水印的規劃座標。這些數值正是渲染器繪製浮水印時所使用的精確值。

位置規劃 x規劃 y備註
左上00浮水印緊貼左上角。
右上1920 - 400 = 15200浮水印緊貼右上角。
左下01080 - 100 = 980浮水印緊貼左下角。
右下1520980浮水印緊貼右下角。
置中(1920 - 400) / 2 = 760(1080 - 100) / 2 = 490數學上置中,允許半像素的偏移量。

若浮水印在所選縮放比例下,任一維度大於底圖,規劃座標可能為負值或超過底圖寬度,渲染器會在底圖畫布邊界處裁切浮水印,而不是縮放底圖以配合浮水印。這是有意設計的行為,而非隱藏的縮放。若重要內容落在底圖之外,請降低縮放比例,或先裁切浮水印來源圖。

檔案限制、格式與輸出細節

Cities: Skylines 的螢幕擷取畫面可能相當大,尤其在 4K 解析度下,因此值得了解工具實際接受的內容。兩個輸入檔案都必須為 JPG、PNG 或 WebP 格式。GIF、SVG、AVIF 及其他格式不在支援範圍內。每個壓縮檔案最大可達 25 MiB。瀏覽器解碼圖片後,工具會獨立檢查任一邊長不超過 20,000 像素,且總像素數不超過 40,000,000 像素。這些解碼後的限制是為了保護瀏覽器畫布記憶體,因為一個小型的壓縮檔案可能會展開成非常大的像素緩衝區。

限制邊界值邊界上的行為
接受的 MIME 類型image/jpeg、image/png、image/webp其他格式會以明確的錯誤訊息拒絕。
壓縮檔案大小25 MiB(26,214,400 位元組)等於上限會被接受;超過一個位元組會被拒絕。
解碼後邊長每邊 20,000 像素等於上限會被接受;超過一個像素會被拒絕。
解碼後像素預算每張圖片 40,000,000 像素等於上限會被接受;超過一個像素會被拒絕。
浮水印縮放比例10% 至 200%範圍兩端皆會被接受。
浮水印不透明度0% 至 100%範圍兩端皆會被接受。
輸出格式PNG在沒有來源貢獻色彩的位置會保留透明度。

輸出的 PNG 使用底圖的精確寬度與高度,這對於 Cities: Skylines 擷取畫面而言很重要,因為你希望結果能放入與原始螢幕擷取畫面相同的縮圖位置或社群媒體版面配置中。EXIF 中元資料、相機欄位、動畫以及原始壓縮皆不保證在重新編碼後保留。JPEG 輸入沒有透明度,因此輸出中的透明區域僅來自底圖或浮水印的 PNG/WebP。當縮放比例非 100% 時,使用瀏覽器內建的內插方式,因此大幅縮小或放大的浮水印邊緣可能會略微變得較柔;若邊緣的像素精準度很重要,請以完整尺寸檢查下載的 PNG。

Worked Example: Adding a Watermark to a City Screenshot

Suppose you have a 1920x1080 Cities: Skylines screenshot (the base) and a 600x120 transparent PNG logo (the overlay) you want to drop into the bottom-right corner at half opacity. Here is how the numbers work out step by step.

You choose Bottom right. With scale at 100% and the base at 1920x1080, the overlay's planned coordinates are x = 1920 - 600 = 1320 and y = 1080 - 120 = 960. The renderer draws the overlay at (1320, 960), exactly flush with the bottom-right corner of the base.

If you decide the logo is too big and switch the scale to 50%, both overlay dimensions are halved because the tool applies the same factor to width and height. The new planned dimensions are 600 x 50 / 100 = 300 pixels wide and 120 x 50 / 100 = 60 pixels tall. The new planned coordinates become x = 1920 - 300 = 1620 and y = 1080 - 60 = 1020. The logo is now a small badge in the bottom-right corner, and its aspect ratio of 5:1 is preserved as 300:60.

Set opacity to 50%. The renderer multiplies the overlay's alpha contribution by 0.5 globally, so the logo is visible through the city screenshot but the buildings behind it still show clearly. Transparent pixels already present in the PNG logo stay transparent, which keeps the surrounding sky or terrain crisp. Create the composition, download the PNG, and you have a 1920x1080 PNG with a small semi-transparent watermark ready for YouTube, Reddit, or Discord.

If you later decide the watermark should sit in the top-right instead, simply pick Top right. The renderer recomputes the coordinates: x = 1920 - 300 = 1620, y = 0. The same scaled 300x60 logo now sits flush with the top-right corner. You do not need to re-edit the overlay file.

What the Tool Does Not Offer

The Image Overlay tool is intentionally limited to one predictable overlay, which is why the math above stays simple. It does not include rotation, free dragging, arbitrary x/y coordinates, margins or padding around the overlay, blend modes (multiply, screen, overlay, and so on), masks, background removal, repeated tiling, or multi-layer editing. There is only one overlay on top of one base, drawn at one of five positions.

For most Cities: Skylines capture tasks - a corner logo, a channel watermark, a small reference badge, a centered thumbnail label, or a single transparency texture - this scope is enough. If you need a different angle, a non-rectangular mask, or several stacked overlays, edit the overlay source first or use a full design tool. The Image Overlay tool is meant to be the predictable, local-to-your-browser step for the simple case.

You can pair the overlay with other browser tools in the same workflow. After exporting the combined PNG, you can crop it, resize it, add a border, or convert it to JPG for a smaller attachment, all without uploading anything. To compress the final PNG before uploading it to a forum, a focused image compressor can shrink the file size while keeping the dimensions you just exported.

Tips for a Clean Result on the First Try

A few habits help Cities: Skylines screenshots come out clean on the first attempt.

First, prepare the overlay as a transparent PNG or WebP so the part outside the logo is already see-through. The tool respects transparent pixels in the overlay, which keeps the city screenshot visible everywhere except where the logo actually lives.

Second, calculate the scaled overlay size before exporting. The formula is scaled width = overlay natural width x scale / 100. With a 600-pixel-wide logo at 50% scale, the scaled width is 300 pixels. If that is the exact width you want in the final image, you have already done the math the tool will do.

Third, check the downloaded PNG at full size, not at the page preview size. The preview is sized for the page layout and does not change the pixel dimensions used for rendering or download. A 1920x1080 base produces a 1920x1080 PNG even when the preview on the page looks like a 600-pixel thumbnail.

Fourth, watch the limits. A 4K Cities: Skylines capture is well inside the 20,000-pixel edge cap and the 40,000,000-pixel budget, but an 8K modding screenshot can approach those limits. Resize the capture first if it pushes past the boundary, then overlay as usual.

Finally, keep both originals. The PNG export does not promise to preserve EXIF metadata, animation, or original compression, so if you need to revise the overlay later you can re-run the same step against the same base file.

For a quick start, open the Image Overlay tool, choose your Cities: Skylines screenshot as the base, choose your logo or reference as the overlay, pick a position, set a scale, set an opacity, and download the PNG. Everything stays in your current browser tab throughout the workflow.

If you're weighing options, Cities: Skylines 2: Create a Reference Overlay PNG Locally covers this in detail.

If you're weighing options, How to Use Image Overlay in Google Earth covers this in detail.