跳到正文
DEV Community· moni·· 7 天前AI 評分45

ImgPilot 教學:沒有設計檔時如何更新產品圖片上的價格

How to Update a Price on a Product Image Without the Design File

AI 導讀

ImgPilot 圖片文字編輯器可用來在沒有原始設計檔的情況下,替換產品圖片標籤上的價格。示例將 $49.99 改為 $39.99,並保留標籤原有的字體樣式與外觀。匯出後應核對價格字元、產品輪廓及圖片尺寸;如需多處修改或精確字體,則應改用可編輯文字圖層。

正文

moni

moni

Posted on Nov 15 AI-assisted

The price in your store is current, but the product image in a launch post still says $49.99. You have the exported image and the new price, but the original design file is gone. The price is now part of the pixels, so fixing it means replacing the lettering on the tag without disturbing the product around it.

Here's a small workflow for updating a short price, date, or offer on a product image you own. The example uses a fictional mug promotion.

1. Start with the largest export you have

Use the original PNG, JPG, or WebP if you have it. A screenshot of the image in a chat or a resized thumbnail gives the editor less detail to work with. Keep the source file so you can compare the result, and confirm the replacement price against your store before editing.

2. Replace one exact string

For this example, I’m using the ImgPilot image text editor. I’m part of the ImgPilot team. Upload the image, enter $49.99 under Current text and $39.99 under New text. To specify the position and styling, choose Describe the change in your own words. Here’s the prompt used for the example below.

Change the price on the tag from "$49.99" to "$39.99", keep the bold white numbers, red tag and white border identical.

Including the old text and naming its location is especially helpful if the same number appears elsewhere in the image. ImgPilot shows the credit cost before you run the edit.

Before ($49.99)

A mug product photo with a red tag reading $49.99

After ($39.99)

The edited mug image with $39.99 in white on the red price tag

This before-and-after pair comes from a published GPT Image 2 example. It shows one run on one image.

3. Check the export before replacing the asset

  • Check each character. Read the price back against your source of truth. Look closely at the decimal point, currency symbol, and digits.
  • Compare outside the tag. Toggle between the images and check the product outline, logo, and nearby graphics for unexpected changes.
  • Preview at the real display size. A price that reads clearly at full size can become hard to read in a card or thumbnail. Check the exported dimensions before replacing a larger asset.

If a digit is wrong, retry from the original with a shorter instruction. If the image needs several changes, or you need exact typography, rebuild the text as an editable layer. Keeping the price in HTML or in an editable design layer also makes the next price change simpler.

來源:DEV Community · dev.to