(03) — Case study
PhotoDesk
An internal Next.js application adopted at CJNET to prepare customer photos, arrange exact-size A4 layouts and generate print-ready PDFs.
PhotoDesk — project cover
(02) — The manual workflow
Each ID-photo order used to mean arranging a layout in Photoshop.
Staff had to prepare the photo, choose the correct size, repeat it on a page and check the result before printing. PhotoDesk turns this recurring shop task into a guided application workflow.
(03) — What I worked on
Application development connecting photo preparation, reusable layouts and print-ready output.
My work focuses on bringing the shop’s requirements into a usable workflow: choose a photo, select a preset, adjust the crop, preview the A4 sheet and download or print it. PhotoDesk has been adopted at CJNET.
(04) — Application functionality
Crop and color/Levels controls, background removal through a private rembg service, and manual edge repair.
ID-photo presets and mixed photo-print sizes, quantity controls, spacing and page margins.
Browser Canvas prepares the image crop; pdf-lib places photos at physical dimensions on an A4 PDF with optional cutting guides.
Staff can explicitly save photos to a private Supabase library and reuse them in Template Builder. Temporary editing stays in browser memory until saved.
(05) — Technical architecture
A browser-first image workflow with separate layout, PDF and data layers.
Next.js App Router, React and TypeScript provide the staff interface, with Tailwind CSS for styling.
Pure TypeScript calculations place photos using physical units. Overflow is reported instead of silently shrinking photos.
Canvas rasterizes crops and pdf-lib generates exact-dimension A4 output from the shared layout result.
Supabase Auth protects staff access; PostgreSQL row-level policies and private Storage support customer records and photos.
Background removal uses a private homelab rembg service. Manual preparation remains available when that service is unavailable.
(06) — Testing and operational boundaries
A correct PDF layout still needs to be checked against a physical printer.
Vitest tests cover layout calculations, unit conversion, cropping, PDF behavior and safe redirects. Physical printer calibration, live access-policy checks and backup rehearsal remain part of operational validation; the handoff documentation tracks these separately from application features.
(07) — Outcome and lessons
An internal tool adopted for a recurring print-shop workflow.
The demonstrated result is a guided path from photo preparation to reusable A4 layouts and PDFs. The project taught me to keep sizing math independent of UI pixels, make overflow visible and handle private customer images deliberately.