
General
S
System
Dec 22, 2025
0浏览
0使用
提示词
json
穿越时空的滤镜——老照片修复
感谢宝玉老师的建议。多次尝试之后决定使用玻璃滤镜实现对老照片核心部分的“修复”。
效果图包括:
1. 清华二校门老照片(被毁之前)
2. 恭亲王照片(大概是中国人最早的相片)
3. 老登李鸿章
4. 20元钞票中的风景(漓江)
提示词见评论区,欢迎尝试与分享
@dotey https://t.co/0KDbX4W4nl
Prompts
对提供的照片,根据提示词生成图片,滤镜采用大滤镜,使用彩色呈现。
{
"type": "augmented_reality_filter_synthesis",
"aspect_ratio": "16:9",
"instruction": "CRITICAL: This is an IMAGE-TO-IMAGE task, not a text-to-image generation. You must strictly preserve the pixels of the {{UPLOADED_IMAGE_FILE}} as the background. Do not generate a new scene based on description. Only the area INSIDE the glass filter is allowed to change.",
"global_constraints": {
"source_fidelity": "The background outside the filter must be an EXACT pixel-match to {{UPLOADED_IMAGE_FILE}}. Do not alter, crop, expand, or \'reimagine\' the background context.",
"context_isolation": "Ignore all previous images or conversation topics. Focus EXCLUSIVELY on the current uploaded file.",
"modification_scope": "modifications are STRICTLY limited to the area inside the glass filter lens."
},
"dynamic_analysis_module": {
"step_1_focal_point_extraction": {
"task": "Identify the coordinates of the main subject (Face/Object) in the current file to position the filter.",
"output_variable": "[TARGET_COORDINATES]",
"logic": "Find the center of interest solely within the provided image."
},
"step_2_filter_specs": {
"task": "Determine filter parameters based on the subject.",
"output_variable_shape": "[FILTER_SHAPE]",
"output_variable_style": "[HD_RESTORATION_STYLE]",
"logic": "Face -> Circular/Oval + Skin Restoration. Building -> Rectangular + Structure Sharpening."
}
},
"system_prompt_logic": {
"main_premise": "A first-person view of a hand holding a [FILTER_SHAPE] glass lens over the actual physical print of {{UPLOADED_IMAGE_FILE}}.",
"layer_definition_logic": {
"layer_1_background_immutable": {
"z_index": "Background (The Original Image)",
"content": "The original {{UPLOADED_IMAGE_FILE}} displayed as a large physical print or wall projection.",
"strict_rules": {
"NO_GENERATION": "Do not generate new scenery. Use the uploaded image as a fixed texture map.",
"NO_EXPANSION": "Do not attempt to extend the image borders. Show the image exactly as provided, framing it to fill the background.",
"visual_state": "Must retain all original artifacts: noise, blur, scratches, B&W tone, and low resolution. This is the \'Before\' state."
}
},
"layer_2_foreground_hand": {
"z_index": "Foreground (Overlay)",
"content": "A realistic human hand holding a [FILTER_SHAPE] optical glass lens.",
"positioning": "The hand enters from the edge (unobtrusive). The glass lens is positioned directly over [TARGET_COORDINATES].",
"lighting": "The hand casts a subtle shadow onto the background print to create depth."
},
"layer_3_filter_throughput": {
"z_index": "Lens Interior (The Transformation)",
"content": "The specific pixels visible *through* the glass lens.",
"visual_transformation": {
"action": "Upscale and colorize ONLY the pixels inside the lens boundary.",
"style": "[HD_RESTORATION_STYLE] (4K resolution, realistic textures, vibrant lighting).",
"contrast_lock": "The separation is absolute. Outside the line = Old/Blurry. Inside the line = New/Sharp. No fading gradients."
}
}
}
}
}
标签
x
中文
nano-banana-pro
ui