MCPcopy Create free account

hub / github.com/GordenSun/GordenSuperPPTSkills / functions

Functions79 in github.com/GordenSun/GordenSuperPPTSkills

↓ 24 callersFunction_frac
Return a 0..1 fraction for x/y/w/h given the deck's unit system.
GordenImage2PPTX/scripts/compose_pptx.py:78
↓ 24 callersFunction_frac
Return a 0..1 fraction for x/y/w/h given the deck's unit system.
GordenImagePPTGen/scripts/compose_pptx.py:73
↓ 7 callersFunction_die
(msg: str)
GordenImage2PPTX/scripts/frame_parts_to_icons.py:21
↓ 6 callersFunction_resolve
(assets_dir: Path, file: str)
GordenImage2PPTX/scripts/compose_pptx.py:73
↓ 6 callersFunction_resolve
(assets_dir: Path, file: str)
GordenImagePPTGen/scripts/compose_pptx.py:68
↓ 5 callersFunction_die
(msg: str, code: int = 2)
GordenImage2PPTX/scripts/placement_qa.py:19
↓ 5 callersFunction_die
(msg: str, code: int = 1)
GordenImage2PPTX/scripts/chroma_key.py:55
↓ 5 callersFunction_die
(msg: str, code: int = 2)
GordenImage2PPTX/scripts/layout_guard.py:26
↓ 5 callersFunction_hex_to_rgb
(value: str)
GordenImage2PPTX/scripts/compose_pptx.py:134
↓ 5 callersFunction_hex_to_rgb
(value: str)
GordenImagePPTGen/scripts/compose_pptx.py:94
↓ 4 callersFunction_die
(msg: str, code: int = 2)
GordenImage2PPTX/scripts/compose_pptx.py:52
↓ 4 callersFunction_die
(msg: str, code: int = 2)
GordenImagePPTGen/scripts/compose_pptx.py:47
↓ 4 callersFunction_text_size_pt
Return text size in points. Preferred Image2PPTX field is size_ratio/size_pct: source text height as a fraction/percent of the source image h
GordenImage2PPTX/scripts/compose_pptx.py:86
↓ 3 callersFunction_as_float_list
(value, label: str)
GordenImage2PPTX/scripts/layout_guard.py:46
↓ 3 callersFunction_die
(msg: str, code: int = 2)
GordenImage2PPTX/scripts/visual_compare_qa.py:23
↓ 3 callersFunction_hex_to_tuple
(value: str)
GordenImage2PPTX/scripts/compose_pptx.py:144
↓ 3 callersFunction_write_contact_sheet
Write a labeled visual index of sliced icons for mandatory QA.
GordenImage2PPTX/scripts/slice_grid.py:187
↓ 2 callersFunction_box
(deck, item, width: int, height: int)
GordenImage2PPTX/scripts/placement_qa.py:37
↓ 2 callersFunction_die_auto
()
GordenImage2PPTX/scripts/slice_grid.py:111
↓ 2 callersFunction_draw_boxes
(image, deck, slide, title: str)
GordenImage2PPTX/scripts/placement_qa.py:61
↓ 2 callersFunction_find_cjk_font
(bold=False)
GordenImage2PPTX/scripts/compose_pptx.py:372
↓ 2 callersFunction_find_cjk_font
(bold=False)
GordenImagePPTGen/scripts/compose_pptx.py:318
↓ 2 callersFunction_hex_to_rgba
(value: str, opacity: float = 1.0)
GordenImage2PPTX/scripts/compose_pptx.py:153
↓ 2 callersFunction_hex_to_tuple
(value: str)
GordenImagePPTGen/scripts/compose_pptx.py:104
↓ 2 callersFunction_item_label
(kind: str, idx: int, item: dict)
GordenImage2PPTX/scripts/layout_guard.py:58
↓ 2 callersFunction_iter_positioned
(slide: dict)
GordenImage2PPTX/scripts/layout_guard.py:74
↓ 2 callersFunction_label_text
(item, fallback: str)
GordenImage2PPTX/scripts/placement_qa.py:54
↓ 2 callersFunction_required_box_fields
(item: dict)
GordenImage2PPTX/scripts/layout_guard.py:80
↓ 2 callersFunction_runs
Yield (start, end) index ranges of True runs, merging gaps shorter than min_gap.
GordenImage2PPTX/scripts/slice_grid.py:51
↓ 2 callersFunction_set_run_alpha
Set text color alpha for lightly visible GPT-vision text overlays.
GordenImage2PPTX/scripts/compose_pptx.py:117
↓ 2 callersFunction_set_run_fonts
Set latin + east-asian + complex-script typeface so CJK renders correctly.
GordenImage2PPTX/scripts/compose_pptx.py:104
↓ 2 callersFunction_set_run_fonts
Set latin + east-asian + complex-script typeface so CJK renders correctly.
GordenImagePPTGen/scripts/compose_pptx.py:81
↓ 2 callersFunction_text_content
(item: dict)
GordenImage2PPTX/scripts/layout_guard.py:107
↓ 1 callersFunction_add_outer_shadow
Best-effort soft drop shadow for card-like shapes.
GordenImage2PPTX/scripts/compose_pptx.py:174
↓ 1 callersFunction_add_outer_shadow
Best-effort soft drop shadow for card-like shapes.
GordenImagePPTGen/scripts/compose_pptx.py:129
↓ 1 callersFunction_alpha_bbox
Return (l, t, r, b) bounding box of pixels with alpha > min_alpha, or None.
GordenImage2PPTX/scripts/slice_grid.py:43
↓ 1 callersFunction_apply_preset
Tune defaults for frame layers vs icon sheets without hiding explicit flags.
GordenImage2PPTX/scripts/chroma_key.py:206
↓ 1 callersFunction_auto_segment
Projection-based segmentation: split content into rows by horizontal gaps, then each row into items by vertical gaps. Robust when the AI grid is i
GordenImage2PPTX/scripts/slice_grid.py:72
↓ 1 callersFunction_check_box_match
(item: dict, bbox: list[float], units: str, ref_w: float, ref_h: float, frac_tol: float,
GordenImage2PPTX/scripts/layout_guard.py:92
↓ 1 callersFunction_check_text_styles
(slide_idx: int, slide: dict, ref_h: float, sh_pt: float, min_text_pt: float, max_bold_
GordenImage2PPTX/scripts/layout_guard.py:139
↓ 1 callersFunction_component_segment
Connected-component segmentation by alpha transparency. Returns list of (bbox, index) sorted top-to-bottom, left-to-right. Components are bas
GordenImage2PPTX/scripts/slice_grid.py:116
↓ 1 callersFunction_fit_source_to_preview
Resize source to preview size using the preview aspect as authority.
GordenImage2PPTX/scripts/visual_compare_qa.py:29
↓ 1 callersFunction_hue_distance
(a: float, b: float)
GordenImage2PPTX/scripts/probe_palette.py:63
↓ 1 callersFunction_line_count
(item: dict)
GordenImage2PPTX/scripts/layout_guard.py:113
↓ 1 callersFunction_load_deck
(path: Path)
GordenImage2PPTX/scripts/compose_pptx.py:57
↓ 1 callersFunction_load_deck
(path: Path)
GordenImage2PPTX/scripts/placement_qa.py:25
↓ 1 callersFunction_load_deck
(path: Path)
GordenImage2PPTX/scripts/layout_guard.py:31
↓ 1 callersFunction_load_deck
(path: Path)
GordenImagePPTGen/scripts/compose_pptx.py:52
↓ 1 callersFunction_load_pixels
(path: Path, max_side: int = 240)
GordenImage2PPTX/scripts/probe_palette.py:46
↓ 1 callersFunction_parse_grid
(value: str)
GordenImage2PPTX/scripts/slice_grid.py:34
↓ 1 callersFunction_parse_hex
(raw: str)
GordenImage2PPTX/scripts/chroma_key.py:60
↓ 1 callersFunction_poly_points
Approximate polygon vertices for preview rendering of non-rect shapes.
GordenImage2PPTX/scripts/compose_pptx.py:394
↓ 1 callersFunction_poly_points
Approximate polygon vertices for preview rendering of non-rect shapes.
GordenImagePPTGen/scripts/compose_pptx.py:340
↓ 1 callersFunction_repair_alpha_gaps
Fill pinholes/gaps without reshaping existing anti-aliased edges. A direct max/min filter on the grayscale alpha channel makes straight lines
GordenImage2PPTX/scripts/chroma_key.py:184
↓ 1 callersFunction_sample_border_key
Median color of the image border / corners (the flat key background).
GordenImage2PPTX/scripts/chroma_key.py:68
↓ 1 callersFunction_set_box_from_bbox
(item: dict, bbox: list[float], units: str, ref_w: float, ref_h: float)
GordenImage2PPTX/scripts/layout_guard.py:84
↓ 1 callersFunction_set_fill_alpha
Add an <a:alpha> to a shape's solid fill so cards can be translucent.
GordenImage2PPTX/scripts/compose_pptx.py:158
↓ 1 callersFunction_set_fill_alpha
Add an <a:alpha> to a shape's solid fill so cards can be translucent.
GordenImagePPTGen/scripts/compose_pptx.py:113
↓ 1 callersFunction_spill_channels
Channels that carry the key color's energy (e.g. [1] for green, [0,2] for magenta).
GordenImage2PPTX/scripts/chroma_key.py:86
↓ 1 callersFunction_text_is_bold
(item: dict)
GordenImage2PPTX/scripts/layout_guard.py:130
↓ 1 callersFunction_text_size_pt
(item: dict, sh_pt: float, ref_h: float, default=None)
GordenImage2PPTX/scripts/layout_guard.py:118
↓ 1 callersFunction_wrap_text
(draw, text, font, max_w)
GordenImage2PPTX/scripts/compose_pptx.py:434
↓ 1 callersFunction_wrap_text
(draw, text, font, max_w)
GordenImagePPTGen/scripts/compose_pptx.py:380
↓ 1 callersFunction_write_deck
(path: Path, data: dict)
GordenImage2PPTX/scripts/layout_guard.py:42
↓ 1 callersFunctionanalyze
(path: Path)
GordenImage2PPTX/scripts/probe_palette.py:68
↓ 1 callersFunctionbuild_pptx
(deck, out_path: Path)
GordenImage2PPTX/scripts/compose_pptx.py:193
↓ 1 callersFunctionbuild_pptx
(deck, out_path: Path)
GordenImagePPTGen/scripts/compose_pptx.py:148
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/frame_parts_to_icons.py:26
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/compose_pptx.py:604
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/slice_grid.py:222
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/placement_qa.py:89
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/chroma_key.py:267
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/probe_palette.py:107
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/visual_compare_qa.py:34
↓ 1 callersFunctionmain
()
GordenImage2PPTX/scripts/layout_guard.py:186
↓ 1 callersFunctionmain
()
GordenImagePPTGen/scripts/compose_pptx.py:549
↓ 1 callersFunctionremove_key
( arr: np.ndarray, key: Color, t_low: float, t_high: float, despill: bool, contract: i
GordenImage2PPTX/scripts/chroma_key.py:94
↓ 1 callersFunctionrender_previews
(deck, preview_dir: Path)
GordenImage2PPTX/scripts/compose_pptx.py:453
↓ 1 callersFunctionrender_previews
(deck, preview_dir: Path)
GordenImagePPTGen/scripts/compose_pptx.py:399