Third-party software notices / 第三方软件声明
=============================================
This website runs the following libraries in your browser. They are covered by
the GNU Lesser General Public License version 3 (LGPL-3.0). The rest of the
website is not covered by the LGPL.
本站在浏览器中使用下列库,它们以 GNU 宽通用公共许可证第 3 版(LGPL-3.0)授权;
本站其余部分不受 LGPL 约束。
Component Version License Upstream
heic-to 1.6.7 LGPL-3.0 or later https://github.com/hoppergee/heic-to
libheif 1.23.7 LGPL-3.0 (library) https://github.com/strukturag/libheif
libde265 1.0.16 LGPL-3.0 (library) https://github.com/strukturag/libde265
They are used only to decode HEIC/HEIF photos you open on this website, and
are loaded only when you open such a photo. heic-to embeds libheif and
libde265, compiled to JavaScript with Emscripten.
它们只用于解码你在本站打开的 HEIC/HEIF 照片,也只在打开这类照片时才加载。
heic-to 内嵌了用 Emscripten 编译成 JavaScript 的 libheif 与 libde265。
License texts / 许可证全文
/third-party/LGPL-3.0.txt
/third-party/GPL-3.0.txt (the LGPL-3.0 incorporates the GPL-3.0 / LGPL-3.0 引用了 GPL-3.0)
1. Corresponding source / 对应源码
----------------------------------
Complete source code of the exact versions this website ships, mirrored on
this website:
本站发布版本对应的完整源码,在本站镜像:
/third-party/source/heic-to-1.6.7.tar.gz
sha256 4ff1f10fda1ba04a68317fdc1577599d727926953727d45c808c98c5fbff10ad
/third-party/source/libheif-1.23.7.tar.gz
sha256 f7483e818503ea6224c8863e4a56ac02c7089021a98472c811c12aa19faf2475
/third-party/source/libde265-1.0.16.tar.gz
sha256 b92beb6b53c346db9a8fae968d686ab706240099cdd5aff87777362d668b0de7
The same files are published upstream:
上游发布的同一批文件:
https://github.com/hoppergee/heic-to/archive/refs/tags/v1.6.7.tar.gz
https://github.com/strukturag/libheif/releases/download/v1.23.7/libheif-1.23.7.tar.gz
https://github.com/strukturag/libde265/releases/download/v1.0.16/libde265-1.0.16.tar.gz
This website does not modify these libraries. The file served at the URL in
section 3 is heic-to's published build "dist/csp/heic-to.js", unchanged.
本站没有修改这些库。第 3 节 URL 下发布的文件就是 heic-to 发布包中的
dist/csp/heic-to.js,未做任何改动。
2. How the shipped build is produced / 发布构建如何生成
------------------------------------------------------
a) libheif.js (Emscripten, no WebAssembly, no JavaScript eval). Run this in
the libheif 1.23.7 source tree. The script downloads and builds libde265
1.0.16, then links it in:
在 libheif 1.23.7 源码目录执行下面的命令,脚本会下载并编译 libde265 1.0.16,再链接进来:
mkdir buildjs && cd buildjs
LIBDE265_VERSION=1.0.16 USE_UNSAFE_EVAL=0 USE_WASM=0 ../build-emscripten.sh ..
Copy the resulting libheif.js to heic-to's
src/lib/libheif-without-unsafe-eval.js.
把生成的 libheif.js 复制为 heic-to 的 src/lib/libheif-without-unsafe-eval.js。
heic-to's README ("How to build libheif.js") documents the same steps.
heic-to 的 README("How to build libheif.js")记录了同样的步骤。
b) heic-to. Run this in the heic-to 1.6.7 source tree:
在 heic-to 1.6.7 源码目录执行:
npm install && node esbuild.mjs
This produces dist/csp/heic-to.js.
生成 dist/csp/heic-to.js。
3. Using a modified version of the library / 使用修改版的库
---------------------------------------------------------
The library is not bundled into this website's own code. It is a separate,
unmodified ES module loaded at run time from this fixed URL:
这个库没有打包进本站自己的代码,而是一个独立、未修改的 ES 模块,运行时从下面这个固定 URL 加载:
/vendor/heic-to/1.6.7/heic-to.js
This website uses only this interface of the module:
本站只使用该模块的这个接口:
export function heicTo({ blob: Blob, type: "bitmap" }): Promise<ImageBitmap>
To run this website with your own modified version, build an
interface-compatible ES module (section 2) and serve it in place of that URL.
For example, use Chrome DevTools > Sources > Overrides, or any local proxy.
The page loads the module without a Subresource Integrity check, so the
replacement is used as is. Your modified version must work within the page's
Content-Security-Policy: no JavaScript eval, and workers only from the same
origin or blob:.
要用你自己修改的版本运行本站,按第 2 节构建一个接口兼容的 ES 模块,用它替换上面这个 URL
(例如用 Chrome 开发者工具的 Sources > Overrides,或任何本地代理)。页面加载该模块时不做子资源
完整性(SRI)校验,所以会直接使用替换后的文件。修改版须能在页面的 CSP 下运行:不使用 JavaScript eval,
Worker 只能来自同源或 blob:。
Nothing in this website's terms restricts you from modifying the Combined Work
or reverse engineering it to debug such modifications.
本站条款不限制你修改组合作品,也不限制为调试这类修改而进行逆向工程。