<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shahil Khan</title>
    <description>The latest articles on DEV Community by Shahil Khan (@shahilkhanmaroth0412).</description>
    <link>https://dev.to/shahilkhanmaroth0412</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4184415%2F1459884a-0331-42e5-9d75-bc203cea0716.jpeg</url>
      <title>DEV Community: Shahil Khan</title>
      <link>https://dev.to/shahilkhanmaroth0412</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shahilkhanmaroth0412"/>
    <language>en</language>
    <item>
      <title>FixPDF — Make the correction, not the formatting.</title>
      <dc:creator>Shahil Khan</dc:creator>
      <pubDate>Sun, 25 Oct 2026 16:00:05 +0000</pubDate>
      <link>https://dev.to/shahilkhanmaroth0412/fixpdf-make-the-correction-not-the-formatting-3k1j</link>
      <guid>https://dev.to/shahilkhanmaroth0412/fixpdf-make-the-correction-not-the-formatting-3k1j</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;h3&gt;
  
  
  FixPDF — Make the correction, not the formatting.
&lt;/h3&gt;

&lt;p&gt;FixPDF is a privacy-first PDF editor designed for the small corrections that are surprisingly frustrating to make.&lt;/p&gt;

&lt;p&gt;You often don't need to redesign a PDF. You just need to fix one typo, change a date, correct a name, update an amount, or make a small text correction.&lt;/p&gt;

&lt;p&gt;The problem is that many PDF editors make these simple changes harder than they should be. After editing, text can change fonts, shift position, lose indentation, overflow its original area, or look noticeably different from the surrounding document. This becomes especially difficult with PDFs containing Hindi/Devanagari and other complex-script text.&lt;/p&gt;

&lt;p&gt;FixPDF focuses on solving that annoying part.&lt;/p&gt;

&lt;p&gt;Instead of asking the user to manually figure out the font, size, position, spacing, and alignment, FixPDF analyzes the existing PDF and tries to preserve its typography and layout while making only the requested correction.&lt;/p&gt;

&lt;p&gt;The workflow is intentionally simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open PDF → Select text → Make the correction → Export.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For natural-language corrections, FixPDF also provides a &lt;strong&gt;Smart Fix&lt;/strong&gt; mode. A locally running open-weight Gemma model interprets instructions such as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Change the invoice date to 24 October 2026."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and converts them into a structured editing instruction.&lt;/p&gt;

&lt;p&gt;The actual PDF modification is then handled by the PDF editing engine rather than by the AI.&lt;/p&gt;

&lt;p&gt;So the user doesn't have to spend five minutes fixing something that should have taken five seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Video Demo:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://drive.google.com/file/d/1f10tP6FlBB11sgjfWqxIAeSAboB20XCQ/view?usp=drive_link" rel="noopener noreferrer" class="c-link"&gt;
            export-1792943362579.mp4 - Google Drive
          &lt;/a&gt;
        &lt;/h2&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fssl.gstatic.com%2Fdocs%2Fdoclist%2Fimages%2Fdrive_favicon_2026_32dp.png" width="32" height="32"&gt;
          drive.google.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The demo shows:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Opening an existing PDF.&lt;/li&gt;
&lt;li&gt;Selecting a text region.&lt;/li&gt;
&lt;li&gt;Making a small correction.&lt;/li&gt;
&lt;li&gt;Preserving the surrounding formatting.&lt;/li&gt;
&lt;li&gt;Using Smart Fix with a natural-language instruction.&lt;/li&gt;
&lt;li&gt;Editing Hindi/Devanagari text.&lt;/li&gt;
&lt;li&gt;Exporting the corrected PDF.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/shahilkhan20" rel="noopener noreferrer"&gt;
        shahilkhan20
      &lt;/a&gt; / &lt;a href="https://github.com/shahilkhan20/pdf-bro" rel="noopener noreferrer"&gt;
        pdf-bro
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Fast, local-first PDF correction tool that protects formatting, fonts, and layout with Layout Guardian and Indic script shaping
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;FixPDF (pdf-bro)&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"Fix the words. We protect the formatting."&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;FixPDF is a high-precision, local-first PDF correction suite designed specifically for fixing typos, dates, names, amounts, reference numbers, and localized text in digital documents—&lt;strong&gt;without breaking the original font metrics, baseline alignment, quad geometry, or layout boundaries.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Traditional PDF software treats documents like arbitrary desktop publishing canvases: replacement text overflows into neighboring columns, font weights shift, embedded subsets corrupt, or documents get beamed to untrusted cloud APIs. FixPDF takes the opposite approach: &lt;strong&gt;deterministic PDF micro-surgery paired with an intelligent Layout Guardian quality gate.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;⚡ Key Highlights&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;🔒 &lt;strong&gt;100% Local &amp;amp; Air-Gapped&lt;/strong&gt;: Runs entirely on your local machine. No external cloud dependencies, zero document leakage, private by design.&lt;/li&gt;
&lt;li&gt;🛡️ &lt;strong&gt;Layout Guardian Quality Gate&lt;/strong&gt;: Real-time simulation of every edit before committing (&lt;code&gt;EDIT ➔ SIMULATE ➔ MEASURE ➔ VALIDATE ➔ COMMIT&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;📐 &lt;strong&gt;Micro-Reflow &amp;amp; Controlled Shrink&lt;/strong&gt;: Automatic character-spacing tightening…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/shahilkhan20/pdf-bro" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;FixPDF is built as a new open-source project for this challenge.&lt;/p&gt;

&lt;p&gt;The repository contains the application code, PDF processing logic, and local AI integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;FixPDF uses open-source AI locally through &lt;strong&gt;Ollama&lt;/strong&gt;, with &lt;strong&gt;Google Gemma 2 (2B)&lt;/strong&gt; as the primary model for Smart Fix.&lt;/p&gt;

&lt;p&gt;The AI has a deliberately limited responsibility.&lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; modify PDF bytes, choose fonts, calculate text coordinates, or directly manipulate document layout.&lt;/p&gt;

&lt;p&gt;Instead, Gemma acts as a local natural-language interface.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Fix the surname to Sharma."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Gemma:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"replace_text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"replacement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Sharma"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"layout_preference"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"minimal_change"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The PDF editing engine then handles the actual document modification, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identifying the target text.&lt;/li&gt;
&lt;li&gt;Inspecting the PDF's font resources.&lt;/li&gt;
&lt;li&gt;Preserving the original font whenever possible.&lt;/li&gt;
&lt;li&gt;Checking required glyph coverage.&lt;/li&gt;
&lt;li&gt;Handling text shaping for complex scripts.&lt;/li&gt;
&lt;li&gt;Measuring the replacement text.&lt;/li&gt;
&lt;li&gt;Preserving the original position and baseline.&lt;/li&gt;
&lt;li&gt;Detecting overflow and collisions.&lt;/li&gt;
&lt;li&gt;Validating the result before export.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Hindi and other complex scripts, FixPDF uses shaping-aware rendering rather than treating every character as an independently positioned glyph.&lt;/p&gt;

&lt;p&gt;There is also a deterministic fallback parser so that basic editing remains available even when the local AI model is not running.&lt;/p&gt;

&lt;p&gt;This makes the normal editing path fast and keeps the AI from becoming a dependency for simple corrections.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Architecture
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User
 │
 ├── Quick Fix ───────────────┐
 │                            │
 └── Smart Fix                │
       │                      │
       ▼                      │
   Gemma 2B                   │
       │                      │
       ▼                      │
Structured Intent             │
       │                      │
       └──────────┬───────────┘
                  ▼
          PDF Editing Engine
                  │
                  ▼
           Layout Guardian
                  │
         ┌────────┴────────┐
         ▼                 ▼
       SAFE              UNSAFE
         │                 │
         ▼                 ▼
      Export          Don't modify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key design principle is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI understands the user's intention. Deterministic software handles the document.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;The biggest reason for using open-weight AI here is &lt;strong&gt;local execution&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;PDFs often contain sensitive information such as invoices, identity documents, financial records, contracts, government forms, academic documents, and business records.&lt;/p&gt;

&lt;p&gt;Sending an entire document to a remote AI API just to understand a simple editing instruction creates an unnecessary privacy and dependency problem.&lt;/p&gt;

&lt;p&gt;With a locally running open-weight model, FixPDF can interpret the user's instruction without sending it to an external AI service.&lt;/p&gt;

&lt;p&gt;Open models also make the system more controllable. The AI component can be run locally and constrained to structured output instead of giving an external service direct control over the document.&lt;/p&gt;

&lt;p&gt;Most importantly, the open model is not being used as a black-box PDF editor.&lt;/p&gt;

&lt;p&gt;FixPDF deliberately separates &lt;strong&gt;AI reasoning from document manipulation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This makes the system easier to inspect, test, and run privately on the user's own computer.&lt;/p&gt;

&lt;p&gt;That fits the Week 3 &lt;strong&gt;Slow and Steady&lt;/strong&gt; theme: the goal is to make a small, annoying task easier by having the software do the tedious work for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;[Add your DevRelay agent session here, if available.]&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;PDF editing is one of those tasks where the amount of work is often completely disproportionate to the change being made.&lt;/p&gt;

&lt;p&gt;You want to change:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;one word.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But you end up:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Searching for a PDF editor.&lt;/li&gt;
&lt;li&gt;Uploading the document.&lt;/li&gt;
&lt;li&gt;Finding out the useful features are paid.&lt;/li&gt;
&lt;li&gt;Selecting a text tool.&lt;/li&gt;
&lt;li&gt;Trying to match the original font.&lt;/li&gt;
&lt;li&gt;Adjusting the font size.&lt;/li&gt;
&lt;li&gt;Fixing the position.&lt;/li&gt;
&lt;li&gt;Fixing spacing.&lt;/li&gt;
&lt;li&gt;Fixing indentation.&lt;/li&gt;
&lt;li&gt;Checking whether something else moved.&lt;/li&gt;
&lt;li&gt;Exporting.&lt;/li&gt;
&lt;li&gt;Opening the exported PDF again to make sure it didn't break.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;FixPDF tries to turn that into:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Select → Correct → Export.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The user shouldn't have to become a typography expert just to correct a typo.&lt;/p&gt;

&lt;p&gt;That's the lazy payoff:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Let FixPDF worry about the formatting. You just worry about what the text should say.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Snap2Print 🖨️📸 — Local AI Passport Photo Studio</title>
      <dc:creator>Shahil Khan</dc:creator>
      <pubDate>Fri, 16 Oct 2026 06:26:19 +0000</pubDate>
      <link>https://dev.to/shahilkhanmaroth0412/snap2print-local-ai-passport-photo-studio-1pl7</link>
      <guid>https://dev.to/shahilkhanmaroth0412/snap2print-local-ai-passport-photo-studio-1pl7</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Snap2Print is an AI-powered passport photo processing tool designed to turn ordinary customer photos into print-ready passport photographs with minimal manual effort.&lt;br&gt;
The application can detect multiple faces in a group photo, allowing the user to select the person they want to process. It then automatically creates an appropriate passport-photo crop while also providing manual controls for adjusting the framing.&lt;br&gt;
After cropping, users can optionally remove or replace the background, apply face enhancement, and preview the final passport photo before exporting it. The application can also generate a 4×6 print-ready sheet with multiple passport photos and borders, making it suitable for physical photo-lab printing.&lt;br&gt;
A key design goal was to keep the workflow fast and practical on CPU-only systems, while avoiding unnecessary AI processing whenever it is not required. This makes Snap2Print useful for local photo studios and small businesses that may not have dedicated GPUs or expensive cloud infrastructure.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;The complete source code for Snap2Print is available in my public GitHub repository. The repository contains the application code, AI processing pipeline, UI, and documentation required to understand and run the project locally.&lt;/p&gt;

&lt;p&gt;Youtube Demo Video :&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/uq5Xu1m6Yhg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub Repository:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/shahilkhan2029" rel="noopener noreferrer"&gt;
        shahilkhan2029
      &lt;/a&gt; / &lt;a href="https://github.com/shahilkhan2029/Snap2Print" rel="noopener noreferrer"&gt;
        Snap2Print
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Snap2Print 🖨️📸&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Local-First, Zero-API-Cost AI Passport Photo Processing &amp;amp; 300 DPI Print Sheet Studio&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Snap2Print is an offline-capable, CPU-optimized desktop web application designed for independent photo studios, copy shops, and passport photo booths. It automates the end-to-end passport photo production pipeline—from multi-person group photos to compliant international passport crops, optional background replacement, manual retouching, face enhancement, and print-ready 4×6 inch multi-copy layouts at 300 DPI.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🌟 The Problem Snap2Print Solves&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Small photo studio operators and print shops process dozens of customer passport and visa photos daily. In traditional workflows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Recurring API Costs&lt;/strong&gt;: Cloud background removal services (e.g., remove.bg, clipping APIs) charge $0.20 to $1.00+ per image, eroding small studio profit margins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customer Privacy Violations&lt;/strong&gt;: Uploading customer and minor portraits or biometric data to third-party cloud servers raises strict legal, privacy, and data-sovereignty concerns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware Limitations&lt;/strong&gt;: Most modern AI segmentation pipelines require expensive NVIDIA GPUs with CUDA, which…&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/shahilkhan2029/Snap2Print" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;Snap2Print is built as a local-first AI image-processing application, designed to run on ordinary consumer hardware without requiring a cloud GPU or paid image-processing APIs.&lt;/p&gt;

&lt;p&gt;The pipeline starts by loading and validating the customer's image, including orientation handling and image integrity checks. OpenCV YuNet is used for multi-face detection and facial landmarks, allowing the user to select a specific person from either a portrait or group photo.&lt;/p&gt;

&lt;p&gt;After selecting a face, Snap2Print performs AI-assisted passport cropping using facial landmarks and configurable aspect-ratio presets such as 35×45 mm, 2×2 inch, and 3:4. The crop can then be manually adjusted through an interactive canvas while maintaining the required aspect ratio.&lt;/p&gt;

&lt;p&gt;Background processing is deliberately performed only after cropping. This means the segmentation model processes the smaller portrait instead of the entire original image, reducing unnecessary CPU inference and improving responsiveness. Users can also keep the original background if removal is not required.&lt;/p&gt;

&lt;p&gt;For background replacement, Snap2Print uses local segmentation components such as MediaPipe Selfie Segmentation and lightweight ONNX-based models, followed by mask refinement. A manual eraser is also available for correcting unwanted areas without running the AI model again.&lt;/p&gt;

&lt;p&gt;The processed portrait can optionally go through face enhancement controls and is finally placed into a mathematically calculated 4×6 inch print layout at 300 DPI, with consistent spacing and cutting borders.&lt;/p&gt;

&lt;p&gt;The application provides two main outputs: a single passport photo at native resolution and a print-ready 4×6 sheet containing multiple copies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open innovation is what makes Snap2Print practical as a local-first application rather than another cloud-dependent photo-processing service.&lt;/p&gt;

&lt;p&gt;By using open-source and open-weight AI components, I can run face detection and image segmentation directly on the user's computer. This means customer photos do not need to be uploaded to an external AI service, which is particularly valuable for sensitive identity and passport photographs.&lt;/p&gt;

&lt;p&gt;It also removes per-image API costs and reduces dependency on external services. Instead of relying on one closed AI API for the entire workflow, Snap2Print combines different lightweight AI models with traditional image processing and manual controls.&lt;/p&gt;

&lt;p&gt;This approach makes it possible to build a flexible pipeline where different models can be selected according to the task and available hardware. The result is a tool that can provide AI-assisted photo processing while remaining accessible to small photo studios and users with ordinary CPUs.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;I used an AI coding agent throughout the development of Snap2Print to iteratively design the workflow, implement features, debug issues, and refine the local AI pipeline.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No DevRelay session was saved for this submission.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  My First User
&lt;/h2&gt;

&lt;p&gt;My first real user was &lt;strong&gt;Vishal Gothwal&lt;/strong&gt;, who runs a photo studio.&lt;/p&gt;

&lt;p&gt;Before trying Snap2Print, he was not familiar with setting up Python environments and installing the required libraries, so I helped him configure the project and get it running locally.&lt;/p&gt;

&lt;p&gt;Once it was set up, he tested Snap2Print using real photo-studio scenarios, including passport-photo preparation. His first reaction was essentially, &lt;strong&gt;“Wow.”&lt;/strong&gt; He found the ability to select a person from a group photo, automatically crop the selected face, change the background, and generate a print-ready sheet particularly useful.&lt;/p&gt;

&lt;p&gt;However, he also gave me an important piece of practical feedback: &lt;strong&gt;some photographs still require additional time for face cleaning and retouching.&lt;/strong&gt;&lt;br&gt;
This feedback helped identify an important area for further improvement. Instead of assuming that AI processing is always perfect, Snap2Print keeps manual controls such as the eraser and enhancement tools available so that a studio operator can quickly correct the output when needed.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
