Skip to content

Commit 97286f0

Browse files
committed
feat(prompt): update AI-PP3 prompt for artistic optimization
- Add WARNING notice in README - Update prompt structure for more artistic and creative results - Specify parameter ranges and formatting rules for better output - Include examples and additional instructions - Upgrade dependencies and update package manager to pnpm@10.14.0
1 parent dea01eb commit 97286f0

File tree

9 files changed

+969
-919
lines changed

9 files changed

+969
-919
lines changed

README.md

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# AI-PP3 - AI-Powered RawTherapee Profile Generator
22

3+
> **WARNING**: This is an experimental project, use at your own risk.
4+
35
![Before](/examples/5/IMGP2426.jpg)![After](/examples/5/ai.jpg)
46

57
[CC BY-NC-SA 4.0](https://rawpedia.rawtherapee.com/Rawtherapee_Processing_Challenge_feedback)
@@ -90,35 +92,49 @@ ai-pp3 input.dng --provider openai-compatible --model llama3:8b-instruct-q5_K_M
9092
ai-pp3 input.dng -o output.jpg
9193

9294
# PP3-only mode with custom prompt
93-
ai-pp3 input.dng --pp3-only -p "Unleash the full potential of RAW image pp3 settings with a dramatic flair. Elevate your creative precision by providing:
95+
ai-pp3 input.dng --pp3-only -p "You are a RawTherapee processing profile (pp3) optimization ARTIST. Your mission is to creatively transform the attached pp3 file with artistic vision. A JPEG preview is provided - use it as a starting point for your artistic interpretation.
96+
97+
ARTISTIC MANDATE:
98+
- Prioritize artistic expression and unique visual style
99+
- Create a distinctive mood or atmosphere in the image
100+
- Experiment with color relationships and tonal contrasts
101+
102+
Key Rules:
103+
1. Only modify existing parameter values
104+
2. Keep original section order and parameter order
105+
3. Make bold, creative enhancements
106+
4. Only include parameters you want to change
107+
108+
Common Parameter Value Ranges:
109+
%%PARAMETER_RANGES%%
110+
111+
Output Format:
94112
95-
1. ANALYSIS: A profound exploration into the image's essence, identifying its strengths and areas for transformation.
96-
2. PLAN: Set ambitious goals for adjustments and articulate a vivid creative vision that transcends ordinary imagery.
97-
3. CHANGES: Deliver precise SEARCH/REPLACE blocks to breathe life into the envisioned transformation.
113+
ANALYSIS:
114+
- Artistic opportunities and potential visual directions
98115
99-
RULES:
100-
- Respect the original structure & headers as the foundation upon which to build your masterpiece.
101-
- Proceed thoughtfully, modifying only those values necessary to achieve the desired dramatic effect.
102-
- Maintain the document's integrity by never adding or removing sections.
116+
PLAN:
117+
- Creative vision and mood you're aiming to create
118+
EXECUTION:
103119
104-
CHANGES FORMAT:
105120
\`\`\`
106-
<<<<<<< SEARCH
107121
[Exposure]
108-
Auto=false
109-
Clip=0.02
110-
Compensation=0
111-
Brightness=0
112-
=======
113-
[Exposure]
114-
Auto=false
115-
Clip=0.02
116-
Compensation=-0.5
117-
Brightness=25
118-
>>>>>>> REPLACE
122+
Clip=0.15
123+
Compensation=-0.7
124+
\`\`\`
125+
126+
Example with another section:
119127
\`\`\`
128+
[ColorToning]
129+
Redlow=20
130+
\`\`\`
131+
132+
[Additional changes following these rules]
133+
- Only include parameters you want to change
134+
- Never change section headers
135+
- Include only the sections that need changes
120136
121-
Prepare to embark on this transformative journey as the pp3 content to be optimized follows below:
137+
Current pp3 to transform:
122138
"
123139

124140
# Multi-section processing

README.zh-CN.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,50 @@ ai-pp3 input.dng --provider openai-compatible --model llama3:8b-instruct-q5_K_M
9090
ai-pp3 input.dng -o output.jpg
9191

9292
# 仅生成PP3配置文件(自定义提示词)
93-
ai-pp3 input.dng --pp3-only -p "通过深度分析释放RAW图像潜力,提供:
94-
1. **分析**:深入解析图像特质,识别优化方向
95-
2. **方案**:制定精准调整策略和视觉提升计划
96-
3. **修改**:通过SEARCH/REPLACE块实现参数优化
93+
ai-pp3 input.dng --pp3-only -p "You are a RawTherapee processing profile (pp3) optimization ARTIST. Your mission is to creatively transform the attached pp3 file with artistic vision. A JPEG preview is provided - use it as a starting point for your artistic interpretation.
9794
98-
**规则**:
99-
- 保持原始配置框架
100-
- 仅修改必要参数
101-
- 不增删配置模块
95+
ARTISTIC MANDATE:
96+
- Prioritize artistic expression and unique visual style
97+
- Create a distinctive mood or atmosphere in the image
98+
- Experiment with color relationships and tonal contrasts
99+
100+
Key Rules:
101+
1. Only modify existing parameter values
102+
2. Keep original section order and parameter order
103+
3. Make bold, creative enhancements
104+
4. Only include parameters you want to change
105+
106+
Common Parameter Value Ranges:
107+
%%PARAMETER_RANGES%%
108+
109+
Output Format:
110+
111+
ANALYSIS:
112+
- Artistic opportunities and potential visual directions
113+
114+
PLAN:
115+
- Creative vision and mood you're aiming to create
116+
EXECUTION:
102117
103-
**修改格式**:
104118
\`\`\`
105-
<<<<<<< SEARCH
106-
[Exposure]
107-
Auto=false
108-
Clip=0.02
109-
Compensation=0
110-
Brightness=0
111-
=======
112119
[Exposure]
113-
Auto=false
114-
Clip=0.02
115-
Compensation=-0.5
116-
Brightness=25
117-
>>>>>>> REPLACE
118-
\`\`\`"
120+
Clip=0.15
121+
Compensation=-0.7
122+
\`\`\`
123+
124+
Example with another section:
125+
\`\`\`
126+
[ColorToning]
127+
Redlow=20
128+
\`\`\`
129+
130+
[Additional changes following these rules]
131+
- Only include parameters you want to change
132+
- Never change section headers
133+
- Include only the sections that need changes
134+
135+
Current pp3 to transform:
136+
"
119137

120138
# 多模块处理
121139
ai-pp3 input.dng --sections Exposure,ColorToning

package.json

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-pp3",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography. Features automatic histogram analysis for enhanced AI processing.",
55
"engines": {
66
"node": ">=18"
@@ -22,47 +22,49 @@
2222
"prepare": "husky"
2323
},
2424
"dependencies": {
25-
"@ai-sdk/amazon-bedrock": "^2.2.10",
26-
"@ai-sdk/anthropic": "^1.2.12",
27-
"@ai-sdk/azure": "^1.3.23",
28-
"@ai-sdk/deepinfra": "^0.2.15",
29-
"@ai-sdk/fireworks": "^0.2.14",
30-
"@ai-sdk/google": "^1.2.19",
31-
"@ai-sdk/mistral": "^1.2.8",
32-
"@ai-sdk/openai": "^1.3.22",
33-
"@ai-sdk/openai-compatible": "^0.2.14",
34-
"@ai-sdk/togetherai": "^0.2.14",
35-
"@ai-sdk/xai": "^1.2.16",
36-
"@openrouter/ai-sdk-provider": "^0.7.2",
25+
"@ai-sdk/amazon-bedrock": "^3.0.4",
26+
"@ai-sdk/anthropic": "^2.0.1",
27+
"@ai-sdk/azure": "^2.0.8",
28+
"@ai-sdk/deepinfra": "^1.0.4",
29+
"@ai-sdk/fireworks": "^1.0.4",
30+
"@ai-sdk/google": "^2.0.3",
31+
"@ai-sdk/mistral": "^2.0.1",
32+
"@ai-sdk/openai": "^2.0.8",
33+
"@ai-sdk/openai-compatible": "^1.0.4",
34+
"@ai-sdk/togetherai": "^1.0.4",
35+
"@ai-sdk/xai": "^2.0.4",
36+
"@openrouter/ai-sdk-provider": "^1.1.2",
3737
"@sindresorhus/is": "^7.0.2",
38-
"ai": "^4.3.16",
38+
"ai": "^5.0.9",
39+
"camelcase": "^8.0.0",
3940
"fast-xml-parser": "^5.2.5",
4041
"nano-spawn": "^1.0.2",
41-
"sharp": "^0.34.2",
42-
"yargs": "^18.0.0"
42+
"sharp": "^0.34.3",
43+
"yargs": "^18.0.0",
44+
"zod": "^4.0.17"
4345
},
4446
"devDependencies": {
45-
"@eslint/js": "^9.29.0",
46-
"@types/node": "^24.0.3",
47+
"@eslint/js": "^9.33.0",
48+
"@types/node": "^24.2.1",
4749
"@types/sharp": "^0.32.0",
4850
"@types/yargs": "^17.0.33",
49-
"@typescript-eslint/eslint-plugin": "^8.34.1",
50-
"@typescript-eslint/parser": "^8.34.1",
51+
"@typescript-eslint/eslint-plugin": "^8.39.0",
52+
"@typescript-eslint/parser": "^8.39.0",
5153
"@vitest/coverage-v8": "3.2.4",
52-
"eslint": "^9.29.0",
53-
"eslint-config-prettier": "^10.1.5",
54-
"eslint-import-resolver-typescript": "^4.4.3",
55-
"eslint-plugin-import-x": "^4.15.2",
56-
"eslint-plugin-prettier": "^5.5.0",
54+
"eslint": "^9.33.0",
55+
"eslint-config-prettier": "^10.1.8",
56+
"eslint-import-resolver-typescript": "^4.4.4",
57+
"eslint-plugin-import-x": "^4.16.1",
58+
"eslint-plugin-prettier": "^5.5.4",
5759
"eslint-plugin-promise": "^7.2.1",
58-
"eslint-plugin-sonarjs": "^3.0.3",
59-
"eslint-plugin-unicorn": "^59.0.1",
60-
"globals": "^16.2.0",
60+
"eslint-plugin-sonarjs": "^3.0.4",
61+
"eslint-plugin-unicorn": "^60.0.0",
62+
"globals": "^16.3.0",
6163
"husky": "^9.1.7",
62-
"lint-staged": "^16.1.2",
63-
"prettier": "^3.5.3",
64-
"typescript": "^5.8.3",
65-
"typescript-eslint": "^8.34.1",
64+
"lint-staged": "^16.1.5",
65+
"prettier": "^3.6.2",
66+
"typescript": "^5.9.2",
67+
"typescript-eslint": "^8.39.0",
6668
"vitest": "^3.2.4"
6769
},
6870
"keywords": [
@@ -88,7 +90,7 @@
8890
"url": "https://github.com/tychenjiajun"
8991
},
9092
"license": "GPL-2.0-only",
91-
"packageManager": "pnpm@10.12.1",
93+
"packageManager": "pnpm@10.14.0",
9294
"repository": {
9395
"type": "git",
9496
"url": "https://github.com/tychenjiajun/art.git"

0 commit comments

Comments
 (0)