Loading...
Loading...
Generate infographics for study notes with one click using NotebookLM. Automates the entire process of authentication, content upload, image generation, and download. Activation methods: /infographic or "Generate Infographic", "Create Visualization"
npx skill4agent add zhaozy527/sansui-skills infographic| Parameter | Default Value | Options |
|---|---|---|
| Format | PNG | - |
| Orientation | landscape | landscape / portrait / square |
| Style | sketch-note | 11 styles available |
| Language | zh_Hans | 80+ languages available |
| Detail Level | standard | concise / standard / detailed |
--orientation landscape--style sketch-note--language zh_Hans/infographic /path/to/content.md --output ~/Desktop/Infographics/Title.png/infographic "Create an infographic about hypothesis testing, including: 1. Five-step method 2. α/β risks 3. P-value judgment" --output ~/Desktop/Infographics/Hypothesis_Testing.png/infographic --batch /path/to/folder/ --output-dir ~/Desktop/Infographics/| Parameter | Required | Default Value | Description |
|---|---|---|---|
| No | ~/Downloads/infographic_{timestamp}.png | Output path |
| No | landscape | Image orientation |
| No | standard | Content detail level |
| No | sketch-note | Visual style |
| No | zh_Hans | Output language |
| No | Auto-extracted | Infographic title |
| No | Auto-created or reused | Specify notebook ID |
--orientation| Option | Dimensions | Use Case |
|---|---|---|
| 2752 x 1536 | Recommended Landscape, suitable for mobile reading, Xiaohongshu infographics |
| 1536 x 2752 | Portrait, suitable for WeChat Official Account long images, posters |
| 1536 x 1536 | Square, suitable for Instagram, Moments |
--detail| Option | Description | Use Case |
|---|---|---|
| Simplified version, only core points retained | Concept memorization, single-page summary |
| Standard version, balanced content and white space | Recommended Most scenarios |
| Detailed version, complete content included | Complex knowledge points, complete flowcharts |
--style| Option | Style Description | Use Case |
|---|---|---|
| Recommended Sketch-note style, natural lines, suitable for study notes | Study notes, knowledge cards, Xiaohongshu |
| Professional business style, neat layout | Work reports, business documents |
| Scientific paper style, rigorous and formal | Academic content, research reports |
| Bento grid layout, modular display | Multiple knowledge points comparison, feature comparison |
| Magazine editorial style, rich in images and text | Article illustrations, story narration |
| Teaching guide style, clear steps | Tutorials, operation guides |
| Brick block style, childlike and cute | Light topics, introductory content |
| Clay style, soft and three-dimensional | Creative content, brand tonality |
| Anime style, Japanese illustration | Young audience, entertainment content |
| Cute cartoon style, rounded and adorable | Light topics, female audience |
| Auto-select (determined by AI) | Use when unsure |
--language| Code | Language |
|---|---|
| Simplified Chinese Recommended |
| Traditional Chinese |
| English |
| Japanese |
| Korean |
| Spanish |
| French |
| German |
notebooklm language listnotebooklm auth check --test --jsonnotebooklm login# Find existing notebooks
notebooklm list --json | jq '.notebooks[] | select(.title | contains("Infographic"))'
# Or create a new one
notebooklm create "Infographic Generation Workbench" --json# Add from file
notebooklm source add /tmp/content.md --json
# Or create a temporary file
echo "# Title\n\nContent..." > /tmp/content.md
notebooklm source add /tmp/content.md --jsonnotebooklm source wait <source_id> --timeout 120notebooklm generate infographic "Content requirements description" \
--style sketch-note \
--orientation landscape \
--language zh_Hans \
--jsonnotebooklm artifact wait <task_id> --timeout 600notebooklm download infographic /path/to/output.png -a <artifact_id># 1. Check authentication
notebooklm auth check --test --json
# 2. Create content
cat > /tmp/fmea.md << 'EOF'
# FMEA Failure Mode and Effects Analysis
## Core Formula
RPN = S × O × D
## Action Standards
- RPN ≥ 120: Must take action
- S ≥ 8: Must modify regardless of RPN value
EOF
# 3. Add source
SOURCE_ID=$(notebooklm source add /tmp/fmea.md --json | jq -r '.source.id')
# 4. Wait for processing
notebooklm source wait $SOURCE_ID --timeout 120
# 5. Generate image
TASK_ID=$(notebooklm generate infographic "Create an FMEA infographic including RPN formula and action standards" \
--style sketch-note \
--orientation landscape \
--language zh_Hans \
--json | jq -r '.task_id')
# 6. Wait for completion
notebooklm artifact wait $TASK_ID --timeout 600
# 7. Download
notebooklm download infographic ~/Desktop/FMEA.png -a $TASK_ID# Iterate through md files in directory
for file in /path/to/contents/*.md; do
filename=$(basename "$file" .md)
SOURCE_ID=$(notebooklm source add "$file" --json | jq -r '.source.id')
notebooklm source wait $SOURCE_ID --timeout 120
TASK_ID=$(notebooklm generate infographic "Create infographic" \
--style sketch-note \
--orientation landscape \
--language zh_Hans \
--json | jq -r '.task_id')
notebooklm artifact wait $TASK_ID --timeout 600
notebooklm download infographic ~/Desktop/"$filename".png -a $TASK_ID
# Avoid triggering rate limit
sleep 60
done| Error | Cause | Solution |
|---|---|---|
| Authentication failed | Session expired | Run |
| Rate limit exceeded | Too frequent requests | Wait 5-10 minutes before retrying |
| Generation timeout | Content too complex | Simplify content or extend timeout |
| Download failed | Artifact not completed | Check |
![[Image_Name.png]]attachments/~/Desktop/Infographics/~/Downloads/AskUserQuestionQuestion 1: 📐 Which image orientation to choose?
- landscape (2752×1536, suitable for Xiaohongshu/mobile reading)
- portrait (1536×2752, suitable for WeChat Official Account long images/posters)
- square (1536×1536, suitable for Moments/Instagram)
Question 2: 🎨 Which visual style to choose?
- sketch-note (Sketch-note style, suitable for study notes)
- professional (Professional business style, neat layout)
- scientific (Scientific paper style, rigorous and formal)
- More styles... (View other 7 styles)
Question 3: 🌐 Which output language to choose?
- zh_Hans Simplified Chinese
- zh_Hant Traditional Chinese
- en English
Question 4: 📁 Where to save the generated image?
- Add to note (Insert into current note)
- Save to Downloads
- Custom folderQuestion 1: 🎨 Visual Style (Group 2)
- bento-grid (Bento grid layout, modular display)
- editorial (Magazine editorial style, rich in images and text)
- instructional (Teaching guide style, clear steps)
- bricks (Brick block style, childlike and cute)
Question 2: 🎨 Visual Style (Group 3)
- clay (Clay style, soft and three-dimensional)
- anime (Anime style, Japanese illustration)
- kawaii (Cute cartoon style, rounded and adorable)
- auto (Auto-select, determined by AI){
"questions": [
{
"header": "Orientation",
"multiSelect": false,
"options": [
{"label": "landscape", "description": "2752×1536, suitable for Xiaohongshu/mobile reading"},
{"label": "portrait", "description": "1536×2752, suitable for WeChat Official Account long images/posters"},
{"label": "square", "description": "1536×1536, suitable for Moments/Instagram"}
],
"question": "📐 Which image orientation to choose?"
},
{
"header": "Style",
"multiSelect": false,
"options": [
{"label": "sketch-note", "description": "Sketch-note style, natural lines, suitable for study notes"},
{"label": "professional", "description": "Professional business style, neat layout"},
{"label": "scientific", "description": "Scientific paper style, rigorous and formal"},
{"label": "More styles...", "description": "View more styles: bento-grid/editorial/bricks/clay/anime/kawaii/instructional/auto"}
],
"question": "🎨 Which visual style to choose?"
},
{
"header": "Language",
"multiSelect": false,
"options": [
{"label": "zh_Hans Simplified Chinese", "description": "Simplified Chinese"},
{"label": "zh_Hant Traditional Chinese", "description": "Traditional Chinese"},
{"label": "en English", "description": "English"}
],
"question": "🌐 Which output language to choose?"
},
{
"header": "Save Location",
"multiSelect": false,
"options": [
{"label": "Add to note", "description": "Insert into current note"},
{"label": "Save to Downloads", "description": "Save to ~/Downloads/ directory"},
{"label": "Custom folder", "description": "Specify other folder path"}
],
"question": "📁 Where to save the generated image?"
}
]
}{
"questions": [
{
"header": "Style",
"multiSelect": false,
"options": [
{"label": "bento-grid", "description": "Bento grid layout, modular display"},
{"label": "editorial", "description": "Magazine editorial style, rich in images and text"},
{"label": "instructional", "description": "Teaching guide style, clear steps"},
{"label": "bricks", "description": "Brick block style, childlike and cute"}
],
"question": "🎨 Visual Style (Group 2)"
},
{
"header": "Style",
"multiSelect": false,
"options": [
{"label": "clay", "description": "Clay style, soft and three-dimensional"},
{"label": "anime", "description": "Anime style, Japanese illustration"},
{"label": "kawaii", "description": "Cute cartoon style, rounded and adorable"},
{"label": "auto", "description": "Auto-select, determined by AI"}
],
"question": "🎨 Visual Style (Group 3)"
}
]
}┌─────────────────────────────────────────────────────────────┐
│ 1. User provides content (file or direct input) │
│ │
│ 2. First round of AskUserQuestion │
│ - Orientation: landscape / portrait / square │
│ - Style: 4 common styles + "More styles..." │
│ - Language: zh_Hans / zh_Hant / en │
│ - Save Location: Note / Downloads / Custom │
│ │
│ 3. If "More styles..." is selected, second round of AskUserQuestion │
│ - Style Group 2: bento-grid / editorial / instructional / bricks │
│ - Style Group 3: clay / anime / kawaii / auto │
│ │
│ 4. Generate image (3-10 minutes) │
│ │
│ 5. Process according to save location │
│ - Add to note → Copy to attachments/ → Insert ![[Image.png]] │
│ - Save to Downloads → Keep in ~/Downloads/ │
│ - Custom folder → Move to specified path │
└─────────────────────────────────────────────────────────────┘