[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111215":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":13,"forks30d":13,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":13,"starSnapshotCount":13,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},111215,"image-to-pdf","LakshmiNarayanan2003\u002Fimage-to-pdf","LakshmiNarayanan2003","Convert images to PDF entirely in your browser. Supports JPG, PNG, WebP, HEIC, TIFF and more. No uploads, accounts or tracking.","https:\u002F\u002Flakshminarayanan2003.github.io\u002Fimage-to-pdf\u002F",null,"TypeScript",75,0,51,6,1,11,24,5,49.9,"MIT License",false,"master",true,[26,27,28,5,29,30,31,32,33,34,35,36],"github-pages","heic-to-pdf","image-converter","open-source","pdf-lib","privacy","react","tiff-to-pdf","typescript","vite","webassembly","2026-11-06 16:26:02","2026-11-23 16:39:17","# Pix2PDF\n\n[![CI](https:\u002F\u002Fgithub.com\u002FLakshmiNarayanan2003\u002Fimage-to-pdf\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=master)](https:\u002F\u002Fgithub.com\u002FLakshmiNarayanan2003\u002Fimage-to-pdf\u002Factions\u002Fworkflows\u002Fci.yml)\n\n**Turn images into PDFs. Keep them private.**\n\nA free, open-source image-to-PDF converter that runs entirely in your browser. Combine JPG, PNG, WebP, HEIC, TIFF and other supported formats into one PDF without uploading your images.\n\n**Version 0.1.0** · [Project URL](https:\u002F\u002Flakshminarayanan2003.github.io\u002Fimage-to-pdf\u002F) · [Source](https:\u002F\u002Fgithub.com\u002FLakshmiNarayanan2003\u002Fimage-to-pdf) · [Report an issue](https:\u002F\u002Fgithub.com\u002FLakshmiNarayanan2003\u002Fimage-to-pdf\u002Fissues)\n\nThe project URL is the configured GitHub Pages destination. Publication and observed test results are recorded separately in [verification](docs\u002FVERIFICATION.md).\n\n![Pix2PDF light interface](docs\u002Fimages\u002Fdesktop-light.png)\n\n[Dark theme](docs\u002Fimages\u002Fdesktop-dark.png) · [Workspace](docs\u002Fimages\u002Fworkspace-light.png) · [Mobile dark](docs\u002Fimages\u002Fmobile-dark.png) · [PDF ready](docs\u002Fimages\u002Fsuccess.png)\n\n## What you can do\n\n- Select or drop one image or a mixed batch; preview dimensions, format, size and orientation.\n- Arrange PDF pages with desktop dragging, move buttons, or **Alt + ↑ \u002F ↓** on a focused handle.\n- Rotate left\u002Fright, remove pages, add images and clear the session.\n- Choose Match image, A4, Letter, Legal, A3 or A5; automatic, portrait or landscape orientation.\n- Fit, fill\u002Fcrop or retain 96-DPI original size; set 0\u002F5\u002F10\u002F20 mm margins and white\u002Fblack backgrounds.\n- Choose Standard, High or Maximum quality, name the PDF, and download it again.\n- Convert locally with progress, cancellation, per-file errors and recovery. TIFF pages become individual PDF pages.\n- Use light\u002Fdark themes, keyboard controls and a responsive workspace without an account or paid quota.\n- Try four original generated sample images using the exact production pipeline.\n\n## Formats, honestly\n\n| Input                        | v0.1.0 behavior                                                                                                                                                      |\n| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| JPEG \u002F JPG \u002F JFIF            | Native decode with EXIF orientation, including mirrored orientations. Eligible JPEGs embed without recompression at Maximum.                                         |\n| PNG                          | Native decode. Transparency composites over the chosen page background.                                                                                              |\n| WebP                         | Native decode when available; default still frame for animated files.                                                                                                |\n| GIF                          | Bundled local decoder; **first frame only**, one page.                                                                                                               |\n| BMP                          | Native decoder; common uncompressed RGB tested.                                                                                                                      |\n| SVG                          | Strict static shape\u002Ftext subset; locally rasterized. Scripts, CSS, external images, entities and active content rejected.                                            |\n| AVIF                         | Native decoder, browser\u002Fcodec dependent; actual decoding failure is reported.                                                                                        |\n| HEIC \u002F HEIF                  | Lazy local libheif\u002FHEVC decoder. Primary image only, converted to 8-bit RGBA\u002FPNG; no burst, depth map or HDR preservation.                                           |\n| TIFF \u002F TIF                   | Local decoder, each supported TIFF directory becomes a page. Standard RGB\u002Fgrayscale; uncompressed, LZW and deflate fixtures tested. Some TIFF variants are rejected. |\n| ICO                          | Native decoder chooses a bitmap; PNG-backed ICO tested.                                                                                                              |\n| RAW camera formats \u002F JPEG XL | Not supported. Export a JPEG or PNG first.                                                                                                                           |\n\n[Format details and limitations](docs\u002FFORMAT_SUPPORT.md). There is no claim to support every image format. SVG\u002FPDF output is raster-based, without editable vectors, OCR or preservation of original metadata\u002Fcolor profiles.\n\n## Development\n\nNode **24.19.0 LTS** and npm. No environment variables, credentials, backend or API keys are required for the application.\n\n```sh\nnpm ci\nnpm run dev\n```\n\nVite serves the repository subpath `\u002Fimage-to-pdf\u002F`. Use the path printed by the dev server. Do not open `index.html` directly from disk.\n\n```sh\nnpm run build\nnpm run preview\n```\n\n## Verification\n\n```sh\nnpx playwright install --with-deps chromium firefox webkit\nnpm run verify\n```\n\n`verify` runs types, ESLint, formatting, unit\u002Fcomponent tests, production build, static\u002Fprivacy\u002Flicense checks, documentation links, dependency audit and all browser tests. `npm run check` runs the deterministic checks without browser\u002Faudit prerequisites. See [testing](docs\u002FTESTING.md) and the [observed verification record](docs\u002FVERIFICATION.md) for exact results and environment-specific commands.\n\nOther scripts: `npm run typecheck`, `npm run lint`, `npm run lint:fix`, `npm run format`, `npm run format:check`, `npm test`, `npm run test:e2e`, `npm run fixtures`, `npm run screenshots`.\n\n## Privacy architecture\n\n1. The browser reads selected `File` objects in memory; signature checks precede decoding.\n2. Native browser decoders or a local worker normalize pixels. Previews are bounded to 360 px.\n3. pdf-lib builds the PDF sequentially in memory. No input URL is passed to a server.\n4. A local Blob\u002FObject URL provides the download. Temporary URLs, workers and canvases are released; clear or refresh ends the image session.\n\nNo uploads, conversion server, analytics, accounts, cookies, document storage, remote fonts, runtime CDN or service worker. Theme preference is session-only. Lazy application\u002Fdecoder assets are same-origin GETs; the sample button downloads only public bundled samples. User files never use that fetch path.\n\nAfter needed bundles have loaded, conversion works without a connection. First use of a decoder may still need its static bundle, so this is not an offline-startup\u002FPWA guarantee.\n\nStatic hosting still sees ordinary asset connections. Browser extensions, operating-system swap, browser vulnerabilities and a compromised deployed build lie outside application guarantees. JavaScript cannot securely erase browser memory. Downloaded PDFs persist because the user chose to save them. [Privacy](PRIVACY.md) · [Security](SECURITY.md).\n\n## Architecture and fidelity\n\nReact + strict TypeScript + Vite, system fonts and Lucide icons. Local CSS follows the design language of [PDF2Pix](https:\u002F\u002Fgithub.com\u002FLakshmiNarayanan2003\u002Fpdf-to-image), this tool’s reverse companion.\n\n- `src\u002Flib\u002Fimage\u002F`: signature\u002Fdimension checks, native normalization, EXIF, static SVG validation, worker decoding and thumbnails.\n- `src\u002Flib\u002Fpdf\u002F`: physical page layout, clipping, rotation, quality and PDF construction.\n- `src\u002Fhooks\u002FuseConverter.ts`: session lifetime, input limits, sequential preparation, progress and cancellation.\n- `src\u002Fcomponents\u002F`: accessible workspace, settings, results and product information.\n- `scripts\u002F`: generated artwork\u002Ffixtures, screenshots, licenses and static\u002Fdocumentation checks.\n\nStandard uses JPEG at 85%, capped at 2400 px on the longest side. High uses JPEG at 95%, capped at 4096 px. Maximum keeps decoded resolution and PNG encoding, or directly embeds eligible RGB JPEG scan data after metadata removal. Browser color conversion and decoder precision still apply. Keep originals for archival work. [Architecture](docs\u002FARCHITECTURE.md) · [Decisions](docs\u002FDECISIONS.md).\n\n## Resource limits\n\nThese protect browser memory; they are not paid quotas:\n\n| Resource                       | Limit                                         |\n| ------------------------------ | --------------------------------------------- |\n| Pages                          | 50, including expanded TIFF pages             |\n| Input file                     | 40 MiB                                        |\n| Total original input           | 200 MiB, each multi-page source counted once  |\n| Decoded image                  | 24 million pixels; 8192 px per side           |\n| Retained normalized image data | 128 MiB, plus small previews\u002Fruntime overhead |\n| Encoded PDF output             | 128 MiB                                       |\n| SVG source \u002F elements          | 2 MiB \u002F 10,000 elements                       |\n| Worker decoding                | 45 seconds per source file                    |\n\nLabels use MB as shorthand for MiB. Peak RAM also includes decoded pixels, WASM, canvas and PDF copies; these limits cannot guarantee a fixed heap size. Smaller batches are recommended on phones. If a tab runs out of memory, close other tabs or resize the source images. [Troubleshooting](docs\u002FTESTING.md).\n\n## Samples and screenshots\n\nAll application samples and test artwork are generated by this project; none is a borrowed photograph. `sample-photo.jpg` is a generated landscape illustration saved as JPEG. `npm run fixtures` recreates samples and most edge cases from local code. The original HEIC fixture is committed; optional regeneration uses [the Python script](scripts\u002Fgenerate-heic-fixture.py) with pinned Pillow\u002Fpillow-heif versions. No external websites are accessed by tests for fixtures.\n\n`npm run screenshots` captures the actual production app and starts a local preview if needed. [Fixture and screenshot workflow](docs\u002FTESTING.md).\n\n## GitHub Pages\n\nThe default branch and deployment target are **master**. In **Settings → Pages → Build and deployment**, select **GitHub Actions**. Thereafter a push to `master` runs the deployment workflow automatically. It publishes the exact default-path artifact only after the full CI gate passes; pull requests do not deploy.\n\nThe Vite default base is `\u002Fimage-to-pdf\u002F`. `VITE_BASE_PATH=\u002Fpix2pdf\u002F` supports a different host\u002Fsubpath; it does not rename the actual repository or canonical SEO URL. [Deployment guide](docs\u002FDEPLOYMENT.md).\n\n## Browser support and accessibility\n\nCurrent Chrome\u002FEdge, Firefox and Safari are the targets. Playwright Chromium, Firefox and WebKit exercise the same production build, actual downloads, independent PDF rendering, keyboard controls, desktop dragging, 390\u002F320 px mobile layouts, dark mode, axe and network\u002Fstorage checks. Format availability is conditional on real native decoding. WebKit may replace spaces in suggested download names with underscores; the PDF title retains the chosen name.\n\nPlaywright WebKit is not a physical iPhone test; Chromium is not a separately tested Edge installation. Automated axe checks are not WCAG certification. Screen-reader experience, real mobile download dialogs, print color and unusual photo collections still benefit from human review.\n\n## Open source\n\nMIT © 2026 Lakshmi Narayanan Sridharan for application code. The optional HEIC decoder includes LGPL-3.0 libraries; their notices, corresponding source archives and replacement instructions are distributed with the static site. [License](LICENSE) · [Third-party notices](THIRD_PARTY_NOTICES.md) · [Contributing](CONTRIBUTING.md) · [Changelog](CHANGELOG.md) · [Roadmap](ROADMAP.md) · [Code of conduct](CODE_OF_CONDUCT.md).\n\nNeed the opposite? [PDF → PNG\u002FJPG\u002FWebP with PDF2Pix](https:\u002F\u002Flakshminarayanan2003.github.io\u002Fpdf-to-image\u002F).\n","这是一个纯前端运行的浏览器内图像转PDF工具，无需上传文件、不依赖服务器、无账号与追踪。核心功能包括支持JPG、PNG、WebP、HEIC、TIFF等多种图像格式的本地解析与合并，提供页面排序、旋转、裁剪模式（Fit\u002FFill\u002FOriginal）、纸张尺寸（A4\u002FLetter等）、页边距、背景色及输出质量控制，并具备拖拽操作、键盘快捷键（Alt+↑\u002F↓）和深色主题等交互优化。适用于需保障隐私的临时文档生成场景，如扫描件整理、截图汇编、教学资料归档等。",2,"2026-11-24 04:40:28","CREATED_QUERY"]