feat: PDF to images and images to PDF

Aperta
#154 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript, vite
Ambito
frontend, web-dev

Direzione di ricerca

Start with “Adding a tool” in docs/CODEMAP.md and inspect the existing tool implementations, catalog, and registry patterns. The issue names src/tools/<slug>/<slug>.ts for logic and a Vitest test; identify the zip writer from #190 and dependency guidance in AGENTS.md. Done means both conversion directions, downloads, offline client-side use, and the listed responsive and theme behavior are covered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement later needs-dependency new tool

Why

Turning phone photos of a document into one PDF, or a PDF page into a JPG for a form that only takes images, is a common ask from non-technical users.

Replaces: ilovepdf JPG to PDF, Smallpdf PDF to JPG.

Scope

  • Images to PDF: drop JPG/PNG/WebP, reorder, choose page size (A4, Letter, fit), margins, download one PDF.
  • PDF to images: render each page to PNG or JPG at a chosen DPI, download one or all.
  • Batch download as a zip (reuse the zip writer from #190).

Dependency

This needs a new runtime dependency (pdf-lib (shared with #128) for images to PDF; pdf.js for PDF to images). Per AGENTS.md, get maintainer approval in this issue before starting. Load it lazily in the tool's own chunk, never in the main bundle.

Done when

  • Logic lives in src/tools/<slug>/<slug>.ts with a Vitest test; the component only renders it.
  • One entry in src/tools/catalog.ts (category, audience, keywords, replaces) and one in src/tools/registry.tsx. See "Adding a tool" in docs/CODEMAP.md.
  • Nothing leaves the browser. It works offline once the page has loaded.
  • Works in light and dark mode and at phone width, with no layout shift when its state changes.
Lingua principale
TypeScript
Stelle
2
Fork
1
Merge medio
2g 21h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ajithakdev/toolglass

Tutte le issue di ajithakdev/toolglass

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.