Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Mac で使える、シンプルな WebP 画像変換アプリ。** 写真、スクリーンショット、アニメーション、動画の一部を WebP や GIF に変換できます。ファイルをドラッグして、形式を選んで一括変換。MIT ライセンスのオープンソースで、無料で使えます。

[macOS 版をダウンロード](https://ixiehao.github.io/Any2WebP/ja/download/) · [公式サイト](https://ixiehao.github.io/Any2WebP/ja/) · [MIT ライセンス](LICENSE)
[macOS 版をダウンロード](https://ixiehao.github.io/Any2WebP/ja/download/) · [Windows x64 プレビュー版](https://ixiehao.github.io/Any2WebP/ja/#windows-preview) · [公式サイト](https://ixiehao.github.io/Any2WebP/ja/) · [MIT ライセンス](LICENSE)

![Any2WebP で青緑のハチドリの GIF と可逆 WebP の書き出し結果を比較](docs/assets/any2webp-ja.png)

Expand Down Expand Up @@ -54,7 +54,7 @@ Google の比較では、可逆圧縮の WebP は PNG より約 26%、非可逆

## インストールと対応形式

- **Apple Silicon 搭載の Mac と macOS 26.0 以降**が必要です。DMG を開き、Any2WebP を「アプリケーション」にドラッグします。署名についてはリリースノートをご確認ください。[GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- Mac 版には **Apple シリコンと macOS 26.0 以降**が必要です。DMG を開き、Any2WebP を「アプリケーション」にドラッグします。署名についてはリリースノートをご確認ください。[GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- 画像の変換はそのまま使えます。動画の読み込みには FFmpeg と ffprobe が必要です。「ヘルプ → 依存ツールを確認…」から「動画の依存ツール」を開けます。Homebrew があればインストールや修復を行えます。
- JPEG、PNG、WebP、GIF、APNG、HEIC/HEIF、AVIF、TIFF、BMP、ICO、PSD、JPEG 2000、JPEG XL、MP4、MOV、WebM などを読み込めます。書き出しは WebP または GIF です。
- 英語、簡体字中国語、日本語に対応します。既定ではシステム設定に従い、macOS の「言語」メニューで変更できます。
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ English · [简体中文](README.zh-CN.md) · [日本語](README.ja.md)

**A simple WebP image converter for Mac.** Turn photos, screenshots, animations, and video clips into WebP or GIF. Drag in your files, choose a format, and convert them quickly in a local batch. Any2WebP is free and open source under the MIT license.

[Download for macOS](https://ixiehao.github.io/Any2WebP/download/) · [Website](https://ixiehao.github.io/Any2WebP/) · [MIT license](LICENSE)
[Download for macOS](https://ixiehao.github.io/Any2WebP/download/) · [Windows x64 preview](https://ixiehao.github.io/Any2WebP/#windows-preview) · [Website](https://ixiehao.github.io/Any2WebP/) · [MIT license](LICENSE)

![Any2WebP comparing the Teal Hummingbird GIF and its lossless WebP export side by side](docs/assets/any2webp-en.png)

Expand Down Expand Up @@ -54,7 +54,7 @@ Google measured about 26% smaller files for lossless WebP versus PNG, and 25–3

## Install and use

- Requires **Apple Silicon and macOS 26.0 or later**. Open the DMG and drag Any2WebP into Applications. Signing details are in the release notes. [GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- The Mac app requires **Apple Silicon and macOS 26.0 or later**. Open the DMG and drag Any2WebP into Applications. Signing details are in the release notes. [GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- Image conversion works out of the box. Video import uses FFmpeg and ffprobe. Open **Help → Check Dependencies** to view **Video Dependencies** and check or repair the tools.
- Supported inputs include JPEG, PNG, WebP, GIF, APNG, HEIC/HEIF, AVIF, TIFF, BMP, ICO, PSD, JPEG 2000, JPEG XL, MP4, MOV, and WebM. Export to WebP or GIF.
- English, Simplified Chinese, and Japanese are available. The app follows the system by default, with manual selection in the macOS **Language** menu.
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**简洁好用的 WebP 图片转换软件。** 把照片、截图、动图和视频片段转成 WebP 或 GIF。拖入文件,选好导出格式,点一下即可在 Mac 上快速完成批量转换。完全免费,采用 MIT 许可证开源。

[下载 macOS 版](https://ixiehao.github.io/Any2WebP/zh/download/) · [官网](https://ixiehao.github.io/Any2WebP/zh/) · [MIT 许可证](LICENSE)
[下载 macOS 版](https://ixiehao.github.io/Any2WebP/zh/download/) · [Windows x64 预览版](https://ixiehao.github.io/Any2WebP/zh/#windows-preview) · [官网](https://ixiehao.github.io/Any2WebP/zh/) · [MIT 许可证](LICENSE)

![Any2WebP 同步对比青羽蜂鸟的 GIF 原图与无损 WebP 成品](docs/assets/any2webp-zh-CN.png)

Expand Down Expand Up @@ -54,7 +54,7 @@ Google 的测试中,无损 WebP 比 PNG 小约 26%,有损 WebP 在相近 SSI

## 安装与格式支持

- 需要 **Apple Silicon Mac 和 macOS 26.0 或更新版本**。打开 DMG,将 Any2WebP 拖入「应用程序」。安装包的签名状态见发布说明。[GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- Mac 版需要 **Apple 芯片和 macOS 26.0 或更新版本**。打开 DMG,将 Any2WebP 拖入「应用程序」。安装包的签名状态见发布说明。[GitHub Releases](https://github.com/ixiehao/Any2WebP/releases/latest)
- 图片转换可直接使用。处理视频需要 FFmpeg 和 ffprobe,选择「帮助 → 检查依赖…」打开「视频依赖」。已有 Homebrew 时可按需安装或修复。
- 常见输入包括 JPG、PNG、WebP、GIF、APNG、HEIC/HEIF、AVIF、TIFF、BMP、ICO、PSD、JPEG 2000、JPEG XL、MP4、MOV 和 WebM。导出支持 WebP 和 GIF。
- 界面支持简体中文、英语和日语,默认跟随系统,可在 macOS 菜单栏的「语言」菜单切换。
Expand Down
6 changes: 3 additions & 3 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ node website/verify.mjs
python3 -m http.server 8000 --bind 127.0.0.1 --directory dist/website
```

`content.mjs` 保存三语文案,构建脚本复用项目截图、图标、测试动图和许可文件。官网按钮通过 GitHub `releases/latest/download/` 直接获取附件。发布新版本后更新 `build.mjs` 中的附件名并验证下载和 SHA-256 链接。三个语言的 `download/` 路径供 README 使用。
`content.mjs` 保存三语文案,构建脚本复用项目截图、图标、测试动图和许可文件。Mac 正式版按钮通过 GitHub `releases/latest/download/` 直接获取附件,三个语言的 `download/` 路径指向该 DMG。Windows x64 预览版按钮直连对应的预发布附件,安装说明和 SHA-256 链接放在首页的 `#windows-preview`。更新版本时修改 `build.mjs` 中相应的附件名并验证下载和 SHA-256。

## 搜索入口

首页围绕 Mac 本机批量转换、JPG/PNG/GIF 转 WebP 与视频转动图。四篇三语教程涵盖 GIF 转无损 WebP、按目标体积压缩 WebP、视频片段转动图和系列图片合成动图。操作步骤和适用边界由 `guides.mjs` 维护。首页、教程和语言切换均用静态链接。
首页提供 Mac 正式版与 Windows x64 预览版,介绍本机批量转换、JPG/PNG/GIF 转 WebP 与视频转动图。四篇三语教程按 Mac 版操作编写,涵盖 GIF 转无损 WebP、按目标体积压缩 WebP、视频片段转动图和系列图片合成动图。操作步骤和适用边界由 `guides.mjs` 维护。首页、教程和语言切换均用静态链接。

搜索页有独立标题、描述和 canonical,语言版本互相声明 `hreflang`,英文为默认。首页以 `SoftwareApplication` 描述免费应用、兼容性、截图和下载入口。Sitemap 收录首页与教程,下载跳转页标记为 `noindex`。域名根目录的 robots.txt 由 [个人主页仓库](https://github.com/ixiehao/ixiehao.github.io) 指向项目 Sitemap。构建后运行 `website/verify.mjs` 核对上述入口。

## 在线转换

首屏以 Mac 版下载为主入口。在线体验独占一栏,位于 Mac 版功能介绍之后,可一次将一张 JPG、静态 PNG 或 GIF 转为 WebP。浏览器把文件交给独立 Worker,使用 WebAssembly 转换,站点只提供程序资源。每个文件最多 16 MB、12.5 百万像素和 8192 px 长边。GIF 最多 240 帧且累计画布不超过 2400 万像素,支持透明度、帧延时与循环。转换保留解码后的画面,有限循环次数最多为 WebP 可表示的 65,535 次。
首屏以 Mac 版下载为主入口,另设 Windows x64 预览版下载。在线体验独占一栏,位于 Mac 版功能介绍之后,可一次将一张 JPG、静态 PNG 或 GIF 转为 WebP。浏览器把文件交给独立 Worker,使用 WebAssembly 转换,站点只提供程序资源。每个文件最多 16 MB、12.5 百万像素和 8192 px 长边。GIF 最多 240 帧且累计画布不超过 2400 万像素,支持透明度、帧延时与循环。转换保留解码后的画面,有限循环次数最多为 WebP 可表示的 65,535 次。

`converter/Cargo.lock` 锁定浏览器转换器依赖。构建时发布 WebAssembly 和依赖许可证,可在 `ONLINE-CONVERTER-NOTICES.txt` 查阅。使用 `cargo test --manifest-path website/converter/Cargo.toml --locked` 验证编解码。

Expand Down
23 changes: 20 additions & 3 deletions website/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ const site = "https://ixiehao.github.io/Any2WebP/";
const repo = "https://github.com/ixiehao/Any2WebP";
const asset = "Any2WebP-0.2.30-arm64.dmg";
const dmg = repo + "/releases/latest/download/" + asset;
const windowsVersion = "0.2.31";
const windowsTag = "v" + windowsVersion + "-preview";
const windowsExe = repo + "/releases/download/" + windowsTag + "/Any2WebP-" + windowsVersion + "-windows-preview_x64-setup.exe";
const translations = Object.entries(locales);
const guideEntries = Object.entries(guides);
const pageUrl = (t, leaf = "") => site + t.route + leaf;
const pathPrefix = (t, leaf = "") => "../".repeat(Number(Boolean(t.route)) + Number(Boolean(leaf))) || "./";
const workspaceImage = key => "assets/workspace-" + key + ".png?v=hummingbird-kb";
const versionedStyles = "style.css?v=7";
const versionedStyles = "style.css?v=8";
const demoFiles = {
gif: "docs/assets/hummingbird-loop.gif",
webp: "docs/assets/hummingbird-loop.webp",
Expand Down Expand Up @@ -117,6 +120,11 @@ function downloadButton(t) {
return '<a class="button" href="' + dmg + '">' + escape(t.download) + '</a>';
}

function windowsDownload(t, secondary = false) {
return '<a class="button' + (secondary ? " button-secondary" : "") + '" href="' + windowsExe + '">' +
escape(t.windows.download) + '</a>';
}

function onlineConverter(t) {
const messages = escape(JSON.stringify(t.online));
return ' <section class="container section online-converter" id="online" aria-labelledby="online-title" data-messages="' + messages + '">' +
Expand Down Expand Up @@ -169,7 +177,8 @@ function page(key, t) {
' <section class="hero" aria-labelledby="title"><div class="hero-inner container">',
' <div class="hero-copy"><h1 id="title">' + escape(t.heroLead) + ' <span>' + escape(t.heroAccent) + '</span></h1>',
' <p>' + escape(t.heroDescription) + '</p>',
' <div class="actions">' + cta + '<a class="text-action" href="#online">' + escape(t.online.shortTitle) + '</a></div>',
' <div class="actions">' + cta + windowsDownload(t, true) +
'<a class="text-action" href="#online">' + escape(t.online.shortTitle) + '</a></div>',
' <div class="requirements">' + escape(t.requirement) + '</div>',
' </div>',
' <figure class="hero-image"><img src="' + prefix + screenshot + '" width="2480" height="1550" fetchpriority="high" alt="' + escape(t.screenshotAlt) +
Expand All @@ -193,7 +202,15 @@ function page(key, t) {
' <p>' + escape(t.installIntro) + '</p><p class="requirements">' + escape(t.previewNote) + '</p></div>',
' <div class="install-actions">' + cta + '<div class="downloads"><a href="' + repo + '/releases/latest">' + escape(t.release) +
'</a><a href="' + dmg + '.sha256">' + escape(t.checksum) + '</a></div></div>',
' </div></section>',
' </div>',
' <article class="install" id="windows-preview"><div><h2>' + escape(t.windows.heading) + '</h2>',
' <p>' + escape(t.windows.features) + '</p><p class="requirements">' +
escape("v" + windowsVersion + " · " + t.windows.requirements) + '</p>',
' <p class="requirements">' + escape(t.windows.installNote) + '</p></div>',
' <div class="install-actions">' + windowsDownload(t) + '<div class="downloads"><a href="' +
repo + '/releases/tag/' + windowsTag + '">' + escape(t.release) + '</a><a href="' + windowsExe + '.sha256">' +
escape(t.checksum) + '</a></div></div>',
' </article></section>',
'</main>',
footer(t),
'<script type="module" src="' + prefix + 'demo.js?v=3"></script>',
Expand Down
Loading
Loading