diff --git a/README.ja.md b/README.ja.md index b998174..f40747f 100644 --- a/README.ja.md +++ b/README.ja.md @@ -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) @@ -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 の「言語」メニューで変更できます。 diff --git a/README.md b/README.md index 91409e9..4fd8de9 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/README.zh-CN.md b/README.zh-CN.md index c7fa947..83da3c8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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) @@ -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 菜单栏的「语言」菜单切换。 diff --git a/website/README.md b/website/README.md index 8f63432..201332a 100644 --- a/website/README.md +++ b/website/README.md @@ -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` 验证编解码。 diff --git a/website/build.mjs b/website/build.mjs index 585f263..6df2c6c 100644 --- a/website/build.mjs +++ b/website/build.mjs @@ -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", @@ -117,6 +120,11 @@ function downloadButton(t) { return '' + escape(t.download) + ''; } +function windowsDownload(t, secondary = false) { + return '' + + escape(t.windows.download) + ''; +} + function onlineConverter(t) { const messages = escape(JSON.stringify(t.online)); return '
' + @@ -169,7 +177,8 @@ function page(key, t) { '
', '

' + escape(t.heroLead) + ' ' + escape(t.heroAccent) + '

', '

' + escape(t.heroDescription) + '

', - ' ', + '
' + cta + windowsDownload(t, true) + + '' + escape(t.online.shortTitle) + '
', '
' + escape(t.requirement) + '
', '
', '
' + escape(t.screenshotAlt) +
@@ -193,7 +202,15 @@ function page(key, t) {
     '    <p>' + escape(t.installIntro) + '</p><p class=' + escape(t.previewNote) + '

', ' ', - '
', + ' ', + '

' + escape(t.windows.heading) + '

', + '

' + escape(t.windows.features) + '

' + + escape("v" + windowsVersion + " · " + t.windows.requirements) + '

', + '

' + escape(t.windows.installNote) + '

', + ' ', + '
', '', footer(t), '', diff --git a/website/content.mjs b/website/content.mjs index 36b1960..782a28a 100644 --- a/website/content.mjs +++ b/website/content.mjs @@ -23,17 +23,17 @@ export const locales = { guidesHeading: "WebP conversion guides", stepsHeading: "How to do it in Any2WebP", comparison: "Play the GIF and WebP comparison", - title: "Any2WebP — Free WebP Converter for Mac", - description: "Download the free Any2WebP Mac app for batch WebP conversion, target-size compression, video to GIF, and frame editing. Try single-image conversion online.", + title: "Any2WebP — Free WebP Converter for Mac and Windows", + description: "Batch convert JPG, PNG, and GIF to WebP, compress to a target size, and preview animations side by side. Download for Mac or try the Windows x64 preview.", skip: "Skip to content", languageMenu: "Language", features: "Features", formats: "Formats", heroLead: "WebP converter", - heroAccent: "for Mac", - heroDescription: "Batch convert JPG, PNG, and animated GIF to WebP, or turn a video clip into a GIF. Compare the same frame before and after export. Free and open source, with all conversion on your Mac.", + heroAccent: "for Mac and Windows", + heroDescription: "Batch convert JPG, PNG, and animated GIF to WebP, or turn a video clip into a GIF. Compare the same frame before and after export. Free and open source, with all conversion on your computer.", download: "Download the Mac app", - requirement: "Apple Silicon · macOS 26 or later", + requirement: "Mac · Apple Silicon · macOS 26 or later", screenshotAlt: "Any2WebP showing the teal hummingbird GIF and its lossless WebP export side by side", screenshotCaption: "The comparison below uses the GIF and lossless WebP shown here.", featureHeading: "What you can do in the Mac app", @@ -65,6 +65,13 @@ export const locales = { installHeading: "Get Any2WebP for Mac", installIntro: "Open the DMG and drag Any2WebP to Applications. For video conversion, check FFmpeg and ffprobe in Help → Check Dependencies.", previewNote: "The current build is ad-hoc signed. It has no Apple notarization.", + windows: { + heading: "Windows x64 preview", + download: "Download Windows preview", + features: "Batch-convert JPG, static PNG, GIF, and WebP, combine images into animations, or trim a video clip. Export WebP or GIF with synchronized previews.", + requirements: "Installation and launch tested on Windows 10 22H2 and Windows 11 21H2 (x64).", + installNote: "The installer is unsigned. If WebView2 is missing, the installer needs internet access to download it. Video features require FFmpeg and ffprobe.", + }, release: "Release notes", checksum: "SHA-256", support: "Support", @@ -96,17 +103,17 @@ export const locales = { guidesHeading: "WebP 转换教程", stepsHeading: "在 Any2WebP 中操作", comparison: "播放 GIF 与 WebP 实例对比", - title: "Any2WebP|Mac 免费 WebP 转换器", - description: "下载免费开源的 Any2WebP Mac 版,批量将 JPG、PNG、GIF 转 WebP,支持目标体积压缩、视频转动图和逐帧预览。官网提供单图转换体验。", + title: "Any2WebP|Mac 和 Windows 免费 WebP 转换器", + description: "批量将 JPG、PNG、GIF 转 WebP,支持目标体积压缩、视频转动图和同步逐帧预览。下载 Mac 版或试用 Windows x64 预览版。", skip: "跳到正文", languageMenu: "语言", features: "功能", formats: "格式对比", heroLead: "WebP 转换器", - heroAccent: "为 Mac 设计", - heroDescription: "批量把 JPG、PNG、GIF 转成 WebP,也能截取视频生成 GIF。原图和成品同步逐帧对比。转换全程在 Mac 本机完成,免费开源。", + heroAccent: "适用于 Mac 和 Windows", + heroDescription: "批量把 JPG、PNG、GIF 转成 WebP,也能截取视频生成 GIF。原图和成品同步逐帧对比。转换全程在本机完成,免费开源。", download: "下载 Mac 完整版", - requirement: "Apple Silicon · macOS 26 或更新版本", + requirement: "Mac · Apple 芯片 · macOS 26 或更新版本", screenshotAlt: "Any2WebP 左右同步对比青羽蜂鸟的 GIF 原图和无损 WebP 成品", screenshotCaption: "下方对比使用截图中的 GIF 原图和无损 WebP 成品。", featureHeading: "Mac 版完整功能", @@ -138,6 +145,13 @@ export const locales = { installHeading: "把 Any2WebP 装到 Mac", installIntro: "打开 DMG,将 Any2WebP 拖入「应用程序」。处理视频前,可在「帮助 → 检查依赖」检查 FFmpeg 和 ffprobe。", previewNote: "当前安装包使用临时签名,未经 Apple 公证。", + windows: { + heading: "Windows x64 预览版", + download: "下载 Windows 预览版", + features: "批量转换 JPG、静态 PNG、GIF 和 WebP,也能多图合成动图或截取视频片段。支持 WebP 和 GIF 导出与同步预览。", + requirements: "已在 Windows 10 22H2 和 Windows 11 21H2 的 x64 环境验证安装和启动。", + installNote: "安装包未签名。缺少 WebView2 时,安装程序需要联网下载运行时。视频功能需要 FFmpeg 和 ffprobe。", + }, release: "版本说明", checksum: "SHA-256 校验", support: "反馈", @@ -169,17 +183,17 @@ export const locales = { guidesHeading: "WebP 変換ガイド", stepsHeading: "Any2WebP での手順", comparison: "GIF と WebP の比較を再生", - title: "Any2WebP|Mac 用の無料 WebP 変換アプリ", - description: "無料の Mac 版 Any2WebP で JPG・PNG・GIF を WebP に一括変換。目標サイズでの圧縮、動画の GIF 化、フレーム編集に対応。ウェブでは画像 1 枚の変換を試せます。", + title: "Any2WebP|Mac・Windows 用の無料 WebP 変換アプリ", + description: "JPG・PNG・GIF の WebP 一括変換、目標サイズでの圧縮、動画の GIF 化、変換前後の同期プレビューに対応。Mac 版と Windows x64 プレビュー版をダウンロードできます。", skip: "本文へ移動", languageMenu: "言語", features: "機能", formats: "形式を比較", heroLead: "WebP 変換", - heroAccent: "Mac で手軽に", - heroDescription: "JPG・PNG・GIF をまとめて WebP に変換。動画の一部を GIF にして、変換前後を同じフレームで比較できます。Mac 上で処理する無料のオープンソースアプリです。", + heroAccent: "Mac と Windows で", + heroDescription: "JPG・PNG・GIF をまとめて WebP に変換。動画の一部を GIF にして、変換前後を同じフレームで比較できます。端末上で処理する無料のオープンソースアプリです。", download: "Mac 版をダウンロード", - requirement: "Apple Silicon · macOS 26 以降", + requirement: "Mac · Apple シリコン · macOS 26 以降", screenshotAlt: "青緑のハチドリの GIF と可逆 WebP を並べて表示した Any2WebP の画面", screenshotCaption: "下の比較には、画面にある GIF と可逆 WebP を使っています。", featureHeading: "Mac 版でできること", @@ -211,6 +225,13 @@ export const locales = { installHeading: "Any2WebP を Mac にインストール", installIntro: "DMG を開き、Any2WebP を「アプリケーション」にドラッグします。動画の変換には「ヘルプ → 依存ツールを確認」で FFmpeg と ffprobe を確認してください。", previewNote: "現在のビルドはアドホック署名です。Apple の公証はありません。", + windows: { + heading: "Windows x64 プレビュー版", + download: "Windows プレビュー版をダウンロード", + features: "JPG・静止画 PNG・GIF・WebP の一括変換、画像の合成、動画のトリミングに対応。WebP と GIF の書き出し結果を同期プレビューで比較できます。", + requirements: "Windows 10 22H2 と Windows 11 21H2(x64)でインストールと起動を確認済み。", + installNote: "インストーラーは未署名です。WebView2 がない場合、ダウンロードにはインターネット接続が必要です。動画機能には FFmpeg と ffprobe が必要です。", + }, release: "リリースノート", checksum: "SHA-256", support: "サポート", diff --git a/website/style.css b/website/style.css index 8f36f74..e6a4ecf 100644 --- a/website/style.css +++ b/website/style.css @@ -51,6 +51,8 @@ h1 span { display: block; margin-top: 3px; color: var(--accent); } color: white; font-size: .98rem; font-weight: 690; text-align: center; text-decoration: none; } .button:hover { background: var(--accent-hover); color: white; } +.button-secondary { border: 1px solid #bfcee8; background: white; color: var(--accent-hover); } +.button-secondary:hover { background: #edf3ff; color: var(--accent-hover); } .text-action { font-size: .95rem; font-weight: 620; text-underline-offset: 4px; text-decoration: none; } .requirements { margin-top: 13px; color: var(--muted); font-size: .88rem; } .hero-image img { border: 1px solid #bfcee8; border-radius: 15px; box-shadow: 0 18px 42px #293d6826; } @@ -101,6 +103,7 @@ figcaption span { white-space: nowrap; color: var(--muted); } padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #eaf1ff; } .install p { max-width: 63ch; margin-top: 10px; color: var(--muted); } +.install + .install { margin-top: 16px; } .install-actions { justify-self: end; } .downloads { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-size: .875rem; } .downloads a { text-underline-offset: 4px; } diff --git a/website/verify.mjs b/website/verify.mjs index 532b7b7..215b1ed 100644 --- a/website/verify.mjs +++ b/website/verify.mjs @@ -17,6 +17,7 @@ const pages = ["", ...Object.keys(guides)]; const expectedUrls = languages.flatMap(([, route]) => pages.map(page => site + route + page)); const titles = new Set(); const descriptions = new Set(); +const windowsDownloads = new Set(); const wasm = await readFile(resolve(output, "online-converter.wasm")); assert.equal(wasm.subarray(0, 8).toString("hex"), "0061736d01000000"); @@ -75,6 +76,15 @@ for (const [lang, route] of languages) { const online = html.match(/
]*>([\s\S]*?)<\/section>/)?.[1]; assert.ok(hero?.includes('href="#online"')); assert.ok(!hero.includes('type="file"')); + const windowsAsset = hero.match(/href="(https:\/\/github\.com\/ixiehao\/Any2WebP\/releases\/download\/v([0-9]+\.[0-9]+\.[0-9]+)-preview\/Any2WebP-\2-windows-preview_x64-setup\.exe)"/); + assert.ok(windowsAsset, url + " links to the Windows x64 preview installer"); + const [, windowsExe, windowsVersion] = windowsAsset; + windowsDownloads.add(windowsExe); + const windowsDetails = html.match(/
([\s\S]*?)<\/article>/)?.[1]; + assert.ok(windowsDetails?.includes('href="' + windowsExe + '"')); + assert.ok(windowsDetails.includes('href="' + windowsExe + '.sha256"')); + assert.ok(windowsDetails.includes('href="https://github.com/ixiehao/Any2WebP/releases/tag/v' + windowsVersion + '-preview"')); + assert.ok(windowsDetails.includes("Windows 10 22H2") && windowsDetails.includes("Windows 11 21H2")); assert.ok(html.indexOf('id="features"') < html.indexOf('id="online"')); assert.match(online ?? "", /

[^<]+<\/p>/); assert.match(online, /aria-describedby="online-scope online-help"/); @@ -91,4 +101,5 @@ for (const [lang, route] of languages) { } } } -console.log("Verified " + expectedUrls.length + " indexable pages, reciprocal language links, and non-indexed download redirects."); +assert.equal(windowsDownloads.size, 1, "all languages link to the same Windows installer"); +console.log("Verified " + expectedUrls.length + " indexable pages, reciprocal language links, and Mac and Windows download links.");