# IMGIFY source release — 2026-10-05

## License and scope
IMGIFY's own HTML, CSS and JavaScript in imgify-app-stamp-20261006.zip are offered under GNU AGPL version 3 or later. Copyright (c) 2026 IMGIFY contributors. See AGPL-3.0.txt. No warranty is provided, to the extent permitted by law. You may run, study, modify and redistribute this code under those terms. Third-party libraries, models and fonts keep their own licenses and notices; they are NOT relicensed by IMGIFY. User photos, private server settings, credentials and production backups are not part of this release. This license applies to the program, not to images processed by users.

## Run the application
Extract imgify-app-stamp-20261006.zip to an empty directory. These are the editable source files used by the site; there is no application bundling step. Serve that directory over HTTP (e.g. python -m http.server 4181), then visit http://localhost:4181/. Do not open index.html through file://. The archive includes vendor binaries, fonts, model assets and source notices. A static HTTPS host can serve these files unchanged; configure JavaScript as text/javascript and WASM as application/wasm. No server upload endpoint or secret key is needed. Production .htaccess and ads.txt are intentionally excluded. SHA256SUMS.json records the site files and source archives.

## AI background removal
Unmodified @imgly/background-removal 1.5.8 comes from revision 0eaa8ed2b7b6d9b332a920840d2faab350ee4dc7. imgly-1.5.8-source.zip contains the upstream tree, source, resource packaging scripts, package-lock.json and build instructions. vendor/background-removal.js equals npm dist/index.mjs; vendor/background-removal.js.map contains its embedded source text. Our integration and alpha adjustment are in background-test.js.
To rebuild the upstream project, extract its archive, use Node 20.13.1 (the upstream .nvmrc), run npm ci and npm run build. Consult its README and packages/web/package.json. Replace vendor/background-removal.js with packages/web/dist/index.mjs. Keep the matching resources and ONNX Runtime version; this site uses onnxruntime-web 1.21.0-dev.20250114-228dd16893. The distributed model files are in vendor/bg-assets. Upstream third-party notices and the ISNET MIT license are supplied in vendor/.

## HEIC decoder and rebuilding/replacing it
heic-support.js and heic-worker.js are IMGIFY source. The worker loads the unmodified libheif-js 1.19.8 WASM bundle. Wrapper source revision: fe8e9c29440b839910be9dc32e8d2b826c8217ca. Its LGPL-3.0 terms and the underlying libheif/libde265 terms are supplied separately. No signature or integrity lock prevents replacing the library. You may modify/rebuild it and replace vendor/libheif-bundle.js; refresh without cache. Reverse engineering for debugging modifications to LGPL components is not prohibited.
Archives provide all three source layers: libheif-js; libheif-emscripten v1.19.8; and its libheif submodule at 5e9deb19fe6b3768af0bb8e9e5e8438b15171bf3. The enabled codec is libde265 1.0.15 (source tarball included); AOM is disabled by the upstream default. Build configuration is in the Emscripten archive's .github/workflows/emscripten.yml and libheif's build-emscripten.sh. Use Ubuntu 22.04 and Emscripten 3.1.61 with USE_WASM=1 and USE_UNSAFE_EVAL=0. Extract libheif into the build repository's libheif folder. Place libde265-1.0.15.tar.gz in the libheif build directory to avoid downloading it.
Follow the upstream CI workflow to build and run dist-prep.sh wasm. The libheif-js scripts/install.js performs esbuild bundling; for a locally modified decoder, use your generated libheif-wasm/libheif.js and libheif.wasm in that source tree and execute its esbuild build section, skipping the initial release download/extraction (which would overwrite your modifications). scripts/bundle.js is the entry point. Run npm install in the libheif-js source directory to install its declared development tools; this upstream revision does not include a lockfile, so tool versions can vary. Copy the resulting libheif-wasm/libheif-bundle.js to this site's vendor directory. This source release includes instructions and source, but a full native Emscripten rebuild has not been executed on this Windows machine.

## Other components
Retain vendor/*LICENSE*, vendor/background-removal-ThirdPartyLicenses.json, fonts/Pretendard-LICENSE.txt and fonts/GmarketSans-NOTICE.md. PDF.js support directories also contain their license notices. The licenses.html page identifies components. Earlier heic2any is no longer loaded; its old URL is replaced with a retirement notice to stop distributing the old opaque bundle.

## Submission photo tool (2026-10-05 update)
submission.html, submission.css and submission.js add editable photo/signature preparation. No external service is used. Output dimensions remain fixed; JPEG quality is searched to meet the byte limit, while PNG preserves rendered pixels. An oversized result cannot be downloaded through this tool. Transparent input and padding become white. The shared menu, homepage and bilingual help/legal pages describe the tool.

## Size & specifications mode update
The shared menu now groups resize and submission modes. Ordinary resize preserves aspect ratio using pixels or percentage, without a size target. The converter hides its old resize inputs and uses resize-entry.js to transfer a selected image through the existing device-only ToolBridge. Multiple selected files are offered in a selector; one image is transferred at a time.

## Navigation and converter layout update
The size-tool handoff now uses the current tab via ToolBridge.send(..., {sameTab:true}); other existing result handoffs retain their original behavior. Shared tool-navigation.css stabilizes the header/menu geometry and supplies reduced-motion-aware fades. Converter settings use two rows: profile/format, then target size/quality.

## Persistent work areas
workspace.js keeps the main document and its menus in place while switching tools. The existing standalone size/background tools are embedded as same-origin persistent work areas using workspace-embed.js and workspace.css. Files are passed locally with origin/source-validated messages. Switching tools retains work-area state; it does not upload files. Browser history is handled for menu selections. This supersedes the earlier full-page menu handoff.

2026-10-05: Center PDF editor file picker; simplify PDF menu labels and description line breaks.

2026-10-06: PDF conversion options are shown only for PDF-to-image; centered picker and explicit two-line PDF descriptions.

2026-10-06: Signature dialog tabs use shared purple styling, font selector sizing is improved, and image selection uses a centered purple button with filename display.

## Stamp integration — 2026-10-06
The free PNG stamp tool is in stamp/. stamp.html is the public entry, embedded in the persistent workspace. Korean/Hanja names (2–4 characters), optional 인/印, six shapes and five Korean fonts are supported. Hanja uses unmodified Noto Serif KR, fetched locally only when needed; Unicode cmap coverage is checked before export. All stamp data stays in browser memory. workspace.js validates the origin and frame source for PDF and dirty-state messages. Korean/English controls, retry/reset, refresh warnings, guidance, canonical metadata and sitemap are included. Font originals, notices and sources are in stamp/fonts/.
No build step is required for IMGIFY HTML/CSS/JS. Serve over HTTP(S), preserving relative paths. The development server, testing fixtures, previews and user-selected files are excluded from this archive. Existing vendor source archives remain linked in licenses.html.
