shot-scraper 1.12

Simon Willison's Blog 工具

摘要

shot-scraper 1.12 版本新增 WebP 格式的截图支持,大幅减小文件大小,并提供质量设置选项。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/09/14 02:32

# 发布:shot-scraper 1.12 来源:https://simonwillison.net/2026/Sep/13/shot-scraper/ 发布 (https://simonwillison.net/elsewhere/release/) shot\-scraper 1\.12 (https://github.com/simonw/shot-scraper/releases/tag/1.12)—— 一款用于截取网站截图、录制视频演示以及使用 JavaScript 抓取站点的命令行工具 我已经为我的shot\-scraper (https://shot-scraper.datasette.io/) 截图自动化工具新增了 WebP 支持。现在,你可以用以下方式截取网页的 WebP 格式截图: `` shot-scraper https://simonwillison.net -o screenshot.webp --quality 80 `` 其中,`\-\-quality`选项用于设置质量 —— 如果不使用该选项,生成的 WebP 文件将是无损压缩的。 根据我的经验,WebP 格式的截图文件大小几乎总是比同等的 JPEG 或 PNG 格式小得多。一些示例可参见该PR (https://github.com/simonw/shot-scraper/pull/210)。 我发布此功能是为了将其用于为我的新工具commit\-rewriter (https://simonwillison.net/2026/Sep/14/commit-rewriter/)生成截图。

相似文章

shot-scraper 1.10

Simon Willison's Blog

宣布 shot-scraper 1.10 版本,这是一个通过命令行界面进行截图的开发者工具。

shot-scraper 1.11

Simon Willison's Blog

shot-scraper 1.11 发布,带来了一些小改进,例如服务器进程更长的等待时间,以及新增了 --js-file 和 --timeout 命令选项以保持一致性。

GhostSnap

Product Hunt

GhostSnap 是一款工具,可以让您拍摄多个截图并自动压缩,以供人工智能使用。

Pixel Snapper

Product Hunt

Pixel Snapper 是一款用于清理AI生成的像素艺术的编辑器。