feat: PDF to images and images to PDF

Đang mở
#154 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript, vite
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
2
Fork
1
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ajithakdev/toolglass

Tất cả issue của ajithakdev/toolglass

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.