campus-poster-display

campus-poster-display: Campus poster display tool. Batch-generates 16:9 PPTX from JPG/JPEG/PNG posters in a directory; each poster is centered in full, uses a same-source blurred dark background with fade-in/fade-out effects, advances automatically on a timer, and writes loop-play settings. Intended for turning multiple vertical posters into a looping PPT for campus screens or all-in-one displays, or for merging posters into an offline distributable, auto-advancing PPTX.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "campus-poster-display" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4d8096f025d09e7d59c10dc6a917865a18f5f6cea64913b93b6f3649c7ee48da. Verify the upstream source and version against https://skillhub.cn/skills/user_016975d1/campus-poster-display before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

campus-poster-display: Campus poster display tool. Batch-generates 16:9 PPTX from JPG/JPEG/PNG posters in a directory; each poster is centered in full, uses a same-source blurred dark background with fade-in/fade-out effects, advances automatically on a timer, and writes loop-play settings. Intended for turning multiple vertical posters into a looping PPT for campus screens or all-in-one displays, or for merging posters into an offline distributable, auto-advancing PPTX.

0 Downloads

Introduction source: third_party · user_016975d1 · 2.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: campus-poster-display
description: 校区海报展示。将一个目录中的 JPG/JPEG/PNG 海报批量生成 16:9 PPTX;完整海报居中、同源模糊暗背景、淡入淡出、按计时自动前进,并写入循环播放设置。当用户要把多张竖版海报做成校区大屏、一体机循环展示 PPT,或要将海报合并为可离线分发、自动翻页的 PPTX 时使用。
license: MIT
compatibility: Requires Python 3.10+ with python-pptx, Pillow, and lxml. No network or browser required.
metadata:
  display-name: 校区海报展示
  version: "2.0"

校区海报展示

目标与边界

目标是把海报素材可靠地放进 16:9 展示画面,而不是重新设计海报:

  • 一张海报一页,完整显示,不拉伸、不裁掉前景海报。
  • 两侧使用同一海报生成的模糊暗背景,减少竖图在横屏上的空洞感。
  • 每页默认停留 10 秒,淡入淡出,使用计时自动前进。
  • 循环设置写入 ppt/presProps.xml,生成后自动检查关键 OOXML。
  • 输出只有 PPTX;本技能不生成 HTML、MP4,也不负责发布到数字标牌平台。

开始前先确认:

  1. 素材可用于本次校区展示;不含未授权学生姓名、正脸、学校、成绩单等敏感信息。
  2. 输入目录第一层只放本次要展示的图片;脚本不会递归扫描子目录。
  3. 超长海报即使完整放入一页,也可能因字号过小而不适合远距离观看。长宽比小于约 0.55 时,应优先拆页,而不是依赖自动缩小。

环境检查

技能脚本位于 scripts/generate_pptx.py。

优先使用当前 Codex 工作区自带的 Python;运行前验证依赖:

python3 -c "import pptx, PIL, lxml; print(pptx.__version__, PIL.__version__, lxml.__version__)"

最低要求:Python 3.10、python-pptx>=1.0、Pillow>=10、lxml>=4。仅在依赖确实缺失时安装:

python3 -m pip install "python-pptx>=1.0" "Pillow>=10" "lxml>=4"

标准流程

1. 收集并审查素材

在用户指定目录第一层查找 .jpg、.jpeg、.png,扩展名不区分大小写。先列出文件、检查尺寸与素材授权;不要把整张联络表、超长课程大纲或带透明黑底的拼图误当成适合大屏的单张海报。

2. 生成 PPTX

python3 "<技能目录>/scripts/generate_pptx.py" \
  --input "<海报目录>" \
  --output "<输出目录>/校区海报循环展示.pptx" \
  --seconds 10

参数:

参数 默认值 说明
--input 当前目录 只读取目录第一层的 JPG/JPEG/PNG
--output <输入目录>/artifacts/poster-display.pptx 输出 PPTX 路径
--seconds 10 每页停留秒数,必须大于 0

脚本会:

  1. 按自然文件名顺序读取图片。
  2. 应用 EXIF 方向;透明像素铺白。
  3. 生成 1920×1080 合成画面,前景完整等比缩放,背景模糊压暗。
  4. 生成 16:9 PPTX,写入 fade、自动前进、禁用点击前进、使用计时和循环播放设置。
  5. 重新打开 PPTX 包,检查页数、比例、每页计时、fade 与循环设置;自检失败时返回非零退出码。

3. 验收

脚本输出“OOXML 自检:通过”只证明文件结构正确,不证明目标播放器一定遵循这些设置。交付前还必须:

  • 渲染全部页面,逐页检查前景海报是否完整、清晰、无遮挡、无意外黑底。
  • 对超长海报做远距离可读性审查;无法一眼读懂时拆页或更换素材。
  • 在实际使用的 PowerPoint/WPS 和目标校区一体机上全屏试播至少一轮,确认 10 秒切换、淡入淡出、末页回到首页。
  • 核对屏幕分辨率、缩放模式和播放设备。若不同播放器对 PPT 计时支持不一致,优先从 PowerPoint/WPS 导出 MP4,再用稳定播放器全屏循环。

常见失败

现象 原因 处理
第一层没有 JPG/JPEG/PNG 图片在子目录或格式不支持 把本次素材集中到一个目录第一层,或先转成 JPG/PNG
处理图片失败 图片损坏、伪装扩展名或 Pillow 无法解码 重新导出该图片并单独验证
PPTX 能打开但不自动翻页 播放器未使用计时、未进入放映模式或兼容性差 在目标播放器检查“使用计时”,全屏试播;必要时导出 MP4
海报很窄、文字读不清 原图过长,完整等比缩放后宽度太小 由设计/教研人员拆成多张 3:4 或接近竖版标准比例的页面
透明 PNG 出现黑块 黑色可能是原图中的不透明像素,不是透明区 回到源文件检查 alpha 通道并重新导出

Current listing version

2.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 解决校区海报批量生成 16:9 PPTX 的明确需求,适用于大屏循环展示场景
  • 功能闭环完整,包含模糊背景、淡入淡出、自动翻页与循环设置
Trigger Precision90/100

Highlights

  • description 清晰描述功能与适用场景,触发词完整,边界明确
Structure and Standards90/100

Highlights

  • 文档结构完整,含目标、流程、参数说明、常见失败处理
  • frontmatter 完整,有端到端示例
Execution Reliability85/100

Highlights

  • 依赖明确(python-pptx, Pillow, lxml),参数校验合理
  • 有自检机制,异常处理覆盖主要场景(如图片损坏、格式不支持)
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 42

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.