关于 product-background-generation
用于编写产品摄影背景描述和图像生成提示词的技能,涵盖产品与风格分析、背景选择、材质细节及灯光设计,适用于影棚或生活方式图像。
主要功能
- 01规划影棚与生活方式背景
- 02分析产品风格与色彩
- 03描述三级材质细节
- 04指导灯光与氛围
- 05构建图像生成提示词
适用场景
- 01制作电商产品背景
- 02设计时尚编辑摄影场景
- 03创作社交媒体情境图像
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ tara-shopos/ shopos-prototype --skill product-background-generation安装后在 Claude Code 中输入/product-background-generation确认已加载。
详细介绍
产品背景生成
何时使用此技能
在需要以下操作时使用此技能:
- 为产品摄影创建恰当的背景
- 为电商图片生成影棚或生活方式场景
- 让背景与产品风格和品牌定位相匹配
- 为时尚摄影创建情境环境
- 设计能够提升产品呈现效果的背景
核心概念
背景类型
影棚模式 - 干净、专业的产品摄影:
- 纯色背景(白色、黑色、中性色、彩色)
- 过渡细腻的渐变背景
- 有纹理的影棚背景(帆布、纸张、织物)
- 无缝纸质背景
- 极简影棚环境
- 彩色凝胶灯光背景
- 高调或低调影棚布光
生活方式模式 - 具有情境感、令人向往的图像:
- 室内环境(现代室内空间、极简空间)
- 户外场景(城市街道、公园、自然环境)
- 生活方式场景(咖啡馆、工作空间、住宅)
- 建筑元素(墙壁、地面、表面)
- 天然材料(木材、大理石、混凝土、织物)
材质具体程度
始终采用三级材质具体程度:
- 基础材质:棉、皮革、金属、陶瓷、木材
- 结构特征:织法类型、纹理图案、金属类型
- 表面处理:光滑、有纹理、起绒、拉丝、哑光、光泽
示例:“带哑光饰面的暖色陶土灰泥墙”,而非“橙色墙壁”
分步说明
第 1 步:分析产品情境
从产品图片中提取:
- 产品类别(服装、配饰、家具、电子产品)
- 产品风格(休闲、正式、奢华、极简、传统)
- 色彩搭配(使用具体的颜色名称,而非笼统描述)
- 材质属性(织物、金属、皮革、塑料、木材)
第 2 步:确定背景类型
根据用途选择:
- 电商:采用影棚模式,搭配干净的背景
- 编辑类摄影:采用生活方式模式,搭配情境环境
- 社交媒体:根据平台混合使用两种模式
- 广告:采用生活方式模式进行叙事
第 3 步:运用时尚/品牌美学
- 让背景与产品的品牌定位相匹配
- 考虑目标受众的品味水平
- 使用时尚领域的专用术语
- 运用色彩理论营造和谐或对比效果
- 借鉴编辑类摄影的表达方式
第 4 步:生成背景描述
撰写 2–4 句话的描述,包含:
- 具体的材质名称
- 灯光特征
- 纹理细节
- 氛围特质
- 时尚前沿的专业术语
第 5 步:构建图像生成提示词
Professional [studio/lifestyle] photography background for [product type].
BACKGROUND:
[Detailed description from Step 4]
LIGHTING:
- [Specific lighting setup]
- [Direction and quality]
- [Color temperature]
CAMERA:
- [Camera type and lens]
- [Aperture for depth effect]
- [Angle and framing]
MOOD: [Atmospheric qualities]
Professional product photography, commercial quality, 8K resolution.
示例
示例 1:奢华腕表(影棚)
输入:
- 产品:奢华金表
- 风格:高端、精致
- 用途:电商主视觉图片
背景描述: “精致的影棚布景,渐变背景从深炭灰过渡到暖石墨色,营造出立体纵深感。左侧三分之一区域设有拉丝金属装饰板,增添低调的工业风格质感。以 45 度角布置柔和主光,并搭配补光,形成柔和阴影,突出腕表的金属质感。哑光表面处理可避免眩光,同时保留丰富的色调层次。”
完整提示词:
Professional studio photography background for luxury gold watch.
BACKGROUND:
Gradient backdrop transitioning from deep charcoal to warm graphite with dimensional depth, brushed metal accent panel on left creating industrial sophistication. Matte surface treatment, no glare.
LIGHTING:
- Soft diffused key light at 45 degrees with subtle fill
- Creating gentle shadows
- Cool neutral color temperature (5500K)
CAMERA:
- Medium format camera
- 85mm lens, f/5.6 for balanced depth
- Eye-level straight-on angle
MOOD: Refined, sophisticated, premium
Professional product photography, commercial quality, 8K resolution.
示例 2:休闲街头服饰(生活方式)
输入:
- 产品:都市街头风连帽衫
- 风格:休闲、真实
- 用途:社交媒体宣传活动
背景描述: “都市户外场景中,一面具有自然风化痕迹并残留些许涂鸦的纹理混凝土墙,营造出真实的街头文化氛围。温暖的午后阳光在表面投下斜向阴影。背景虚焦处可见城市元素——金属消防梯、砖砌建筑一角。整体风格粗粝、不加修饰,呈现真实的环境质感。”
完整提示词:
Professional lifestyle photography background for urban streetwear hoodie.
BACKGROUND:
Textured concrete wall with natural weathering and subtle graffiti remnants, authentic street culture aesthetic. Soft focus urban elements in background - metal fire escape, brick building. Raw, unpolished texture.
LIGHTING:
- Warm afternoon sunlight creating diagonal shadows
- Natural outdoor light
- Golden hour color temperature (3500K)
CAMERA:
- DSLR, 50mm lens, f/2.8 for shallow depth
- Eye-level angle
- Medium framing
MOOD: Authentic, urban, energetic
Professional fashion photography, editorial quality, 8K resolution.
示例 3:极简家居装饰(生活方式)
输入:
- 产品:陶瓷花瓶
- 风格:极简、斯堪的纳维亚
- 用途:产品目录
背景描述: “现代极简室内空间,暖调米白色的光滑石膏墙,搭配一条天然橡木悬浮搁板,形成水平线条。柔和的漫射窗光从右侧照入,在墙面上形成细腻的渐变。石膏表面可见细微纹理。简洁宁静的斯堪的纳维亚美学,强调留白与天然材料。”
完整提示词:
Professional lifestyle photography background for ceramic vase.
BACKGROUND:
Modern minimalist interior, smooth plaster wall in warm off-white, natural oak floating shelf. Subtle plaster texture visible. Clean Scandinavian aesthetic, emphasis on negative space.
LIGHTING:
- Soft diffused window light from right
- Creating gentle gradient
- Warm neutral color temperature (4500K)
CAMERA:
- Full-frame camera, 35mm lens, f/4
- Eye-level angle
- Environmental context framing
MOOD: Serene, minimal, natural
Professional interior photography, commercial quality, 8K resolution.
核心原则
- 具体胜于笼统:使用“暖陶土色石膏”而非“橙色墙面”
- 材料细节分三个层次:基材 + 结构 + 表面处理
- 使用时尚前沿的语言:采用编辑术语,而非基础描述
- 色彩和谐:策略性地采用互补或对比色调
- 让光线成为特色:描述光线的质感、方向和情绪影响
- 避免陈词滥调:不要脱离上下文使用“现代”“动感”“时尚”等词
- 契合品牌定位:背景必须提升产品的感知价值
应避免的常见错误
- ❌ 描述笼统:“好看的背景”“现代的环境”
- ❌ 忽略产品风格:奢侈品搭配看起来廉价的背景
- ❌ 色彩冲突:彼此竞争、分散产品注意力的颜色
- ❌ 过于复杂:元素过多,彼此争夺注意力
- ❌ 光线平淡:场景缺乏层次和纵深
- ❌ 风格不一致:生硬地混搭影棚风格和生活方式风格
集成模式
# Analyze product
product_analysis = {
"category": "garment",
"style": "casual",
"colors": ["navy blue", "white"],
"materials": ["cotton denim", "metal hardware"]
}
# Generate background
background_desc = generate_background(
product_analysis=product_analysis,
background_type="lifestyle", # or "studio"
brand_positioning="mid-market"
)
# Create full prompt
prompt = f"""
Professional lifestyle photography background for {product_analysis['category']}.
{background_desc}
CRITICAL: Extract and feature ONLY the product from the product image.
Completely disregard any existing background in the product image.
Place the product in the newly generated background described above.
Ensure proper lighting, shadows, and spatial integration.
"""
# Call image generation
result = await image_gen(
prompt=prompt,
images=[{"url": product_image_url, "name": "Product"}],
aspect_ratio="16:9",
output_format="jpeg"
)
参考资料
- 来源:
workflow_garments_v2/implementation/utils/background_generation.py - 相关技能:产品分析与造型、图像提示词工程
- 时尚摄影术语指南:参见 references/fashion-terms.md
评论
支持 Markdown