image tool to check the result before deliveringpython3 -c "
from PIL import Image
img = Image.open('PATH')
print(f'Size: {img.size}, Mode: {img.mode}')
"
read tool (supports jpg/png)image tool with prompt "identify the exact pixel coordinates of [target area]"from PIL import Image, ImageDraw, ImageFont
img = Image.open('INPUT')
draw = ImageDraw.Draw(img)
# For text replacement:
# 1. Fill background color over old text
# 2. Draw new text with matching font/color
# macOS Chinese fonts: /System/Library/Fonts/STHeiti Light.ttc
font = ImageFont.truetype('/System/Library/Fonts/STHeiti Light.ttc', size=PIXEL_SIZE)
draw.text((x, y), 'NEW TEXT', fill=(R, G, B), font=font)
img.save('OUTPUT.jpg', quality=95)
Use the image tool on the output file with prompt:
"Compare this edited image with the original at ORIGINAL_PATH. Is the text replacement correct? Is resolution preserved? Any artifacts?"
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
這個影像編輯技能質量不錯,文件寫得清楚明白,操作步驟也很清晰。最大優點是它能保持原圖解析度不變形,而且要求驗證編輯結果確保沒問題再交付,這點很靠譜。風險提示寫得詳細,讓人用著放心。不足之處是它對蘋果電腦系統的字型支援比較好,在其他電腦上可能需要自己找合適的字型。測試用例也比較少,只有3個場景。總體來說功能實用,但跨平臺相容性還需要改進。