run2_pillow-technical-poster
Pillow techniques for technical posters including 3D layers, annotations, and balanced layouts.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 7
01 前言 Front Matter
- name
- run2_pillow-technical-poster
- description
- Pillow techniques for technical posters including 3D layers, annotations, and balanced layouts.
03 SKILL.md 正文
Pillow Technical Poster — Improved Patterns
Layout Balance Strategy
Problem: Content clustered at top with empty space below. Solution: Calculate total content height and center vertically, or use full vertical space.
total_content_h = sum(layer_heights) + (num_layers - 1) * gap
start_y = (canvas_h - total_content_h) // 2 # Center vertically
# Or: distribute layers to fill available space between header and footer
Enhanced 3D Layer Rendering
def draw_layer_3d(draw, x, y, w, h, radius, fill, depth=10):
"""3D effect: shadow → side → face."""
# 1. Drop shadow (soft, offset)
draw.rounded_rectangle(
[x+5, y+depth, x+w+5, y+h+depth],
radius=radius, fill='#D5D3C9'
)
# 2. Side edge (darker variant of fill)
draw.rounded_rectangle(
[x+2, y+3, x+w+2, y+h+3],
radius=radius, fill=darken(fill, 0.85)
)
# 3. Top face
draw.rounded_rectangle(
[x, y, x+w, y+h],
radius=radius, fill=fill
)
Annotation Leader Lines — Best Practice
- Start with a small circle (4px radius) at component edge
- Horizontal line in muted gray, width=1
- Consistent right-margin alignment for all labels
- Label: bold font, description: regular font below
Vertical Assembly Axis
- Dashed line to the left of all layers
- Arrow tips at top and bottom
- Indicates assembly/disassembly direction
- Use segments of 10px line + 10px gap
Professional Metadata Footer
- Thin separator line
- Company name, document title, classification
- Revision number, view type, distribution notice
- Scale reference bar with tick marks
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.