跳到正文
Skillpedia
测试7.2k · #13342

stitched-full-page-capture

它能做什么

这个技能通过逐步滚动页面,并把稳定下来的画面拼接成一张图片,来截取整个网页。适合需要随滚动加载内容的现代网站的准确整页图片的人。

适用场景

  • ✓整页截图出现空白、灰色或缺少部分内容的时候。
  • ✓页面内容只有在滚动时才会加载的时候。
  • ✓你需要从可靠的整页图片中裁剪出各个部分的时候。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/codex/stitched-full-page-capture/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/codex/stitched-full-page-capture/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为这个网站截取整页截图。普通截图大部分是空白的。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会打开真实页面,先滚动一次以加载内容,然后截取每个稳定的画面,并拼接成一张图片。任何带有空白条带或缺失部分的截图都会被拒绝。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Stitched Full-Page Capture

Overview

Use settled viewport screenshots instead of trusting one-shot browser fullPage captures. This is especially important for Framer pages and other lazy/scroll-animated sites where the MP4 can look correct while the tall screenshot is mostly blank.

Core Workflow

  1. Open the real page URL, not a marketplace thumbnail, cover image, remix page, or asset URL.
  2. Warm the page by scrolling from top to bottom once so lazy media and reveal sections mount.
  3. Return to the top.
  4. Scroll downward in viewport-sized or slightly-overlapping steps.
  5. Wait about 2 seconds after each scroll stop.
  6. Capture the settled viewport.
  7. Stitch the viewport captures vertically into one full-page image.
  8. Cut section crops from that stitched image, not from the native browser fullPage screenshot.
  9. Validate the stitched image against the representative still, MP4, and motion frames.

Reject a full-page candidate when it has blank/gray/white bands, very low visual content, missing lazy-loaded sections, an extremely narrow content column, or obvious disagreement with the scroll video.

Script

For daily UI inspiration articles, use the helper script from this skill directory when available:

node <skills-root>/stitched-full-page-capture/scripts/stitch_full_page_capture.mjs \
  --manifest articles/YYYY-MM-DD-ui-inspiration-capture/manifest.json

The script:

  • reads items[].pageUrl, fullPageImage, and sectionImages;
  • opens each live page in Playwright Chromium;
  • warms lazy content by scrolling once;
  • captures settled viewport slices;
  • stitches slices into fullPageImage;
  • regenerates each existing section crop from the stitched image;
  • updates manifest.json with fullPageCaptureMethod: "stitchedViewportScreenshots", viewport, step, segment count, and corrected crop coordinates.

Useful options:

--item 4              # repair only item 4, 1-based
--viewport 1440x1100 # default
--step 950           # default; use less than viewport height for overlap
--wait 2000          # ms to wait after each scroll stop
--quality 3          # ffmpeg JPEG quality, lower is better

Validation

After capture or repair:

  • Inspect at least the page that was visibly wrong before.
  • Confirm sips -g pixelWidth -g pixelHeight full-page/*.jpg reports expected wide/tall dimensions.
  • Confirm the full-page image is not mostly blank and includes lower-page content.
  • Confirm section crop coordinates are contiguous and end at the full-page image height.
  • Run the project’s normal checks, for example:
git diff --check -- articles/YYYY-MM-DD-ui-inspiration-capture/content.md articles/YYYY-MM-DD-ui-inspiration-capture/manifest.json
node scripts/check-ui-inspiration-duplicates.mjs articles/YYYY-MM-DD-ui-inspiration-capture/manifest.json
for f in articles/YYYY-MM-DD-ui-inspiration-capture/videos/*.mp4; do ffprobe -v error "$f" >/dev/null; done

Notes

  • The scroll video is evidence that the page can render during real scrolling, but it is not a substitute for full-page still evidence.
  • Native fullPage screenshots can still be saved as comparison candidates, but do not use them as source of truth unless they visually match the stitched capture.
  • For daily UI articles, update the manifest and commit only the repaired article assets and metadata.
常见问题

为什么不直接使用普通的整页截图?

技能说明,对于懒加载页面,一次性整页截图可能大部分是空白的。

什么样的截图会被拒绝?

出现空白或灰色条带、内容很少、缺少部分内容,或内容列异常狭窄的截图。

它能用视频来核对图片吗?

可以。技能要求用任何对应的视频或帧来验证拼接后的图片。

详情

作者的原始描述

Capture or repair reliable full-page screenshots for lazy-loaded, scroll-animated, Framer, WebGL/canvas, or reveal-heavy web pages. Use when full-page screenshots are blank, gray, white, sparse, show a tiny content strip, disagree with a working scroll video, or when article evidence/section crops must be derived from a trustworthy full-page image.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13342
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能