excel图片汇总功能
Introduction
name: xlsx-image-rollup description: This skill should be used when the user wants to aggregate, summarize, or "roll up" a multi-sheet Excel workbook that contains embedded images (drawings) into a single summary table that also embeds the relevant images grouped by category/series/issue/responsibility. Trigger phrases include "把登记表按 XX 分类整理", "问题汇总 + 附图", "按维度聚合并附图片", "生成图片汇总相册", "embedded-image xlsx rollup", "把每张问题图片单独放在单元格中", "按问题点汇总图片", and any request where the source .xlsx contains a few hundred to a few thousand embedded product/issue images and the deliverable is a single grouped album/summary sheet. xlsx-image-rollup Overview Aggregate a multi-sheet .xlsx (each row may carry an embedded image) into a single grouped summary table that also embeds the relevant images. The source workbook is typically a quality-issue registration form, inspection log, or after-sales complaint table where every record has 1–N photos. The output is a single Excel file with one "rollup" sheet where rows are grouped by category → series → responsibility → issue point, with frequency, percentage, user-original-quote and grouped images side by side. Four output layouts are supported (selectable via --layout): thumbnail – 180px thumbnails, multiple images per row arranged horizontally original – original image data embedded (no resampling), 400px display detail – one image per row, text columns vertically merged, image centered in a fixed cell grid – one row per issue, all images packed into a single "图片" cell in a 4-per-line grid Workflow To produce a rollup from a source .xlsx, follow these steps: Inspect the source workbook to find the data sheets, header row, image-bearing column(s), and any image variants (.png/.jpeg/.mpo). Extract embedded images via scripts/extract_images.py (ZIP-level, NOT openpyxl). Save to a flat directory using a stable image{N}.{ext} naming scheme. Aggregate rows by (category, series, responsibility, issue) dimensions. For each unique key, count frequency, compute count / series_total percentage, collect user-original-quotes, and collect the list of image filenames. Choose a layout by asking the user which of the four layouts fits the use case (or default to grid for the most compact one-row-per-issue presentation). Build the output workbook via scripts/build_album.py with --layout and the summary JSON. Deliver the output .xlsx via present_files and offer to adjust layout/sizing. Key decisions to make with the user Layout – thumbnail (smallest file, fastest), original (largest, full resolution), detail (each image in its own cell), grid (one row per issue, images in a single cell, recommended default). Display edge – only relevant for thumbnail/original/detail. Default 320px gives a balance of clarity and row density. Grid width – only relevant for grid. Default 4 images per row; lower to 3 for larger images. Critical pitfalls to avoid See references/openpyxl_pitfalls.md for the full list. The non-obvious ones are: DO NOT use openpyxl.load_workbook to read drawings on a large file with hundreds of embedded images — it can crash on certain drawing-relationship XML. Use the ZIP-level extractor in scripts/extract_images.py instead. MPO images (3D/multi-frame, extension may be .jpeg) trigger KeyError: '.mpo' in openpyxl because openpyxl uses Pillow.Image.format as the embedded extension. The scripts auto-detect MPO and convert to JPEG via Pillow.Image.seek(0).convert('RGB').save('JPEG'). OneCellAnchor.ext must be XDRPositiveSize2D(cx, cy), NOT a (w, h) tuple. The error message says value is <class 'tuple'> but the real fix is to import from openpyxl.drawing.xdr and construct the proper class. Cell-center an image with AnchorMarker(col=..., colOff=pixels_to_EMU(x), row=..., rowOff=pixels_to_EMU(y)) and OneCellAnchor(_from=marker, ext=XDRPositiveSize2D(...)). The x/y offsets are the distance from the cell's top-left in pixels. Column width and row height units: column width is in "characters" (≈ 7px each for Calibri 11); row height is in pt (1pt = 1/72 inch, ≈ 1.33px). Convert with pixels_to_EMU(px) from openpyxl.utils.units (1px = 9525 EMU). Resources scripts/ extract_images.py – ZIP-level image extractor. Takes <input.xlsx> <output_dir> and writes every embedded image (across all sheets) to the output dir using image{N}.{ext} naming. Handles MPO and other exotic formats. build_album.py – Build a rollup workbook from a summary JSON + extracted image directory. Supports --layout {thumbnail,original,detail,grid}. Produces a styled xlsx with frozen header, blue header fill, bordered cells, and a "图片" column. references/ openpyxl_pitfalls.md – Detailed catalog of openpyxl embedding pitfalls with reproductions and fixes. layouts.md – Visual decision guide for choosing the right layout, with example row/column counts and file size impact.
Resource Information
License information is collected from official sources and may be outdated or missing. Refer to the LICENSE file in the original repository before commercial use.
Information boundary
Information on this page is collected from official documents for technical presentation only and does not imply our endorsement. Pricing, quotas and availability are subject to the latest official statements. We make no commitment regarding any action you take after leaving this site.
Similar skills
腾讯文档 TENCENT DOCS
Marked paidAPI key required腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/html/文档上云。
秘书材料星公文写作-妙笔skill
Not specifiedAPI key required体制内资深办公室主任+管理学博士,自学编程开发的智能公文写作Skill,让所有办公室同仁少掉头发、少加无用的班,材料一稿过关,省下的时间留给自己、享受生活!————————我们能给你带来的核心价值:1、颠覆传统写作:逻辑建模38类公文全链条,特有模板化引导问答模式,分分钟省心生成高质量大稿。--------2、替你“向上管理”:独有审稿人画像机制,文稿一键结构性修改,精准匹配审稿人画像,过稿率提升至少10倍!----------3、杜绝AI编造:缺失的数字、文号、人名、日期一律用[待补]标注,绝不杜撰,守住公文底线。-----------4、算法格式托底:数十万全量智控知识库+6500行前沿核心控制代码,格式精准对齐GB/T 9704,出稿零失误。——————————————————本skill历史版本开放了5%知识库的免费试用版,下载即可使用,但需注意:知识库有著作权,仅用于个人使用,不可用于其他任何目的。有兴趣的可以试试。——————————————————————单次付费版skill已发布,2元一次使用全量知识库。具体在发布者“熵衍信息”主页skill里。
罗斯蒙德从想法到功能落地
Not specified【从想法到功能落地】南京罗斯蒙德基于已交付项目沉淀的需求到原型全链路技能:支持一句话描述、手绘草图、竞品截图、设计稿、PRD 文档、参考 URL 六种输入,先分诊再走对应解析链路,归一到统一需求模型后按信息量分场景澄清(模糊想法少问多假设、直接给梗概让你推翻;已有 PRD 或设计稿则主动抛出问题并捕获品牌主色与信息密度),生成含目标/非目标/用户故事/验收标准/边界与权限场景/竞品对标/埋点/灰度/里程碑/风险/外部参考的完整版 PRD 并跑可验收性自检,再由 PRD 推导页面清单,产出可离线打开的中保真 HTML 原型(PC / 移动端双骨架,主色 #1677FF)与需求覆盖矩阵,最后在你确认 HTML 无误后打包可导入墨刀的格式。多次无法满足需求时自动触发全网检索兜底。触发词:从想法到功能落地、想法落地、一句话转原型、草图转原型、截图转原型、写 PRD 并出原型、需求变 PRD、生成原型、需求覆盖矩阵、导入墨刀、原型交付、原型走查。
罗斯蒙德智能写作与文档交付
Not specified【罗斯蒙德智能写作与文档交付】南京罗斯蒙德基于已交付项目沉淀的文档写作场景,含三条业务流:A 客户模板套打——解析客户真实 docx 模板为模板契约,原位填充保留样式,逐章核验章节完整率 100%、页眉页脚与页面设置一致、无残留占位符;B 日报周报生成——从会议纪要与成员工作记录抽取事项候选并逐条溯源,归档为已完成/进行中/下一步/风险/协调五分类,核验不遗漏、不编造、不重复、状态不混淆;C 标品/公文/通用文档——GB/T 9704 七种公文文种等硬约束骨架固定,商务/通用文体动笔前必与用户确认写作风格与字数限制,骨架仅作确认后的可选参考。Trigger on: AI写作/按客户模板生成/客户模板套打/模板契约/严格按模板/章节完整率/项目周报/项目日报/工作周报/工作日报/会议纪要生成周报/公文写作/标品文档/格式标准化/转成PPT/转成Word/需求说明书/操作手册/复盘报告.
ppt-generator-skill
Not specified智能 PPT 生成助手。根据用户描述的主题、行业、风格,自动生成漂亮的 PPT 文件。支持所有行业(商务、教育、科技、医疗、金融、创意等),支持中英文双语,支持用户提供的模板或 AI 自动配色。触发词:做PPT、生成PPT、制作幻灯片、make ppt、create presentation、帮我做个PPT。
Excel / XLSX
FreemiumAPI key required创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
What is a Skill
A Skill is a packaged single capability, such as text recognition, document summarization, or keyword extraction. Developers wrap the calling logic and prompts into a plugin-like unit, so users can load it without understanding the underlying model. StackPilot indexes a large number of skills that can be tried instantly or assembled into a plan.