Skip to content

Commit 816b582

Browse files
committed
chore: give i a try 3
1 parent db70f68 commit 816b582

1 file changed

Lines changed: 17 additions & 21 deletions

File tree

.github/scripts/generate-icon-prompts.py

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -141,36 +141,34 @@ def generate_icon_prompt(name, platform, description):
141141
Dimensions: 800x800 pixels"""
142142

143143
# Generate post-processing instructions
144-
post_processing = """AFTER GENERATION - POST-PROCESSING STEPS:
144+
post_processing = """**Step 1: Remove white background with GIMP (free)**
145145
146-
Step 1: Remove white background with GIMP (free):
147-
a) Open image in GIMP
148-
b) Right-click layer → "Add Alpha Channel"
149-
c) Tools → "Select by Color" (Shift+O)
150-
d) Click white background
151-
e) Press Delete key
152-
f) File → Export As → logo.png
153-
g) Set Compression level to 9 → Export
146+
a) Open image in GIMP
147+
b) Right-click layer → "Add Alpha Channel"
148+
c) Tools → "Select by Color" (Shift+O)
149+
d) Click white background
150+
e) Press Delete key
151+
f) File → Export As → logo.png
152+
g) Set Compression level to 9 → Export
154153
155-
Step 2: Resize to 800x800 pixels if needed:
156-
- GIMP: Image → Scale Image → 800x800px
157-
- Or use any image editor
154+
**Step 2: Resize to 800x800 pixels if needed**
158155
159-
Step 3: Compress with pngquant (free command line tool):
160-
- Install: brew install pngquant (Mac) or apt install pngquant (Linux)
161-
- Run: pngquant --quality=70-85 logo.png --ext .png --force
162-
- This reduces file size by 60-80% while maintaining quality
156+
- GIMP: Image → Scale Image → 800x800px
157+
- Or use any image editor
163158
164-
Alternative online tool (no install): https://tinypng.com/
159+
**Step 3: Compress with pngquant (free command line tool)**
165160
166-
Target specs: 800x800px PNG with transparent background, under 100KB"""
161+
- Install: `brew install pngquant` (Mac) or `apt install pngquant` (Linux)
162+
- Run: `pngquant --quality=70-85 logo.png --ext .png --force`
163+
- This reduces file size by 60-80% while maintaining quality
164+
165+
**Target specs:** 800x800px PNG with transparent background, under 100KB"""
167166

168167
return {
169168
'ai_prompt': ai_prompt,
170169
'post_processing': post_processing
171170
}
172171

173-
174172
def find_missing_logos(modules_dir):
175173
"""Find all buildingblock directories missing logo.png"""
176174
missing = []
@@ -202,7 +200,6 @@ def find_missing_logos(modules_dir):
202200

203201
return missing
204202

205-
206203
def main():
207204
# Get modules directory
208205
repo_root = Path(__file__).parent.parent.parent
@@ -240,6 +237,5 @@ def main():
240237
# Output as JSON for GitHub Action to consume
241238
print(json.dumps(results, indent=2))
242239

243-
244240
if __name__ == '__main__':
245241
main()

0 commit comments

Comments
 (0)