Khoa Nguyen

All rights reserved © yunkhngn · v1.6.6

Work

PixShade

Protect your images from AI training — A browser-based tool using Multi-Scale DCT perturbation and metadata obfuscation.

PixShade

Role

Solo — design & engineering

Year

2026

Stack

React 18TypeScriptVite 7TailwindCSS 4Web Workers
Source Live demo

Case study

Project Overview: Protecting Images from AI Training

PixShade is an innovative, browser-based tool designed to safeguard digital images from being exploited for AI model training. It addresses the growing concern of image privacy and data scraping by implementing a suite of client-side perturbation techniques. Users can simply drag-and-drop an image or paste its URL, and PixShade processes it locally to disrupt machine learning algorithms while maintaining visual fidelity for human perception.

Core Functionality and Purpose

The primary purpose of PixShade is to empower users with control over their image data in the age of generative AI. It leverages advanced techniques to introduce subtle, imperceptible changes that are significant enough to confuse AI models, preventing them from extracting meaningful features for training purposes. This ensures that users' creative works and personal images retain their intended use without contributing to AI datasets without consent.

Key Features

  • Intuitive Image Input: Supports drag-and-drop functionality and direct URL pasting for ease of use.

  • Multi-Scale DCT Perturbation: Employs frequency-domain noise injection across multiple scales to effectively disrupt AI pattern recognition.

  • Tiled Signature: Adds a deterministic digital signature for potential image authentication, creating unique patterns.

  • Metadata Poisoning: Injects fake or misleading EXIF/XMP data to further obfuscate image origins and context from automated systems.

  • Subtle Watermarking: Offers an optional, semi-transparent protective pattern with customizable opacity and the ability to upload custom PNGs.

  • 100% Client-side Processing: All image manipulation occurs directly in the user's browser, ensuring privacy as no images are uploaded to a server.

  • Elegant UI: Features a beautiful pastel-themed design for a pleasant user experience.

Main Technologies and Their Role

PixShade is built with a modern and efficient technology stack to deliver its complex functionality entirely within the browser:

  • React 18 & TypeScript: Provides a robust, component-based architecture for building a dynamic and maintainable user interface. TypeScript enhances code quality and developer experience through static typing.

  • Vite 7: Enables extremely fast development and build processes, contributing to a smooth development workflow.

  • TailwindCSS 4: Utilized for rapid and consistent styling, allowing for the creation of the elegant pastel UI with high efficiency.

  • Framer Motion: Powers the smooth and engaging animations throughout the application, improving the overall user experience.

  • Web Workers: This is a critical component, allowing intensive image processing algorithms (like DCT perturbation and universal perturbation) to run in separate background threads. This prevents the main UI thread from blocking, ensuring a responsive and non-blocking user interface even during heavy computations.

Technical Challenges and Solutions

Developing PixShade presented several significant technical hurdles. The core challenge was performing advanced, computationally intensive image processing algorithms—such as Multi-Scale Discrete Cosine Transform (DCT) perturbation, adversarial pattern overlays, and metadata injection—entirely within the client's browser. This often leads to performance bottlenecks and unresponsive UIs.

The solution was the strategic implementation of Web Workers. By offloading these complex algorithms to dedicated worker threads, PixShade ensures that the user interface remains fluid and responsive, even while large images are being processed in the background. Furthermore, careful optimization of algorithms for client-side execution and efficient memory management were crucial to handle image data effectively without server-side resources.

What I Learned

  • Mastering Web Workers for Performance: Gained deep experience in leveraging Web Workers to offload heavy computations, significantly enhancing the perceived performance and responsiveness of a web application.

  • Client-Side Image Processing Algorithms: Developed a practical understanding and implementation skills for complex image manipulation techniques like Multi-Scale DCT, adversarial pattern generation, and watermarking directly in JavaScript/TypeScript.

  • Metadata Manipulation in the Browser: Explored and implemented methods for reading and injecting EXIF/XMP metadata client-side, a less common but powerful browser capability.

  • Building a Robust Frontend Architecture: Designed and implemented a structured React application capable of managing intricate state, asynchronous operations, and modular utility functions.

  • Understanding AI Adversarial Techniques: Gained insights into the principles behind adversarial attacks designed to fool or disrupt AI models, translating theoretical concepts into practical application.

Project Complexity: Advanced

PixShade is classified as an Advanced project. This rating is justified by its reliance on sophisticated image processing algorithms (Multi-Scale DCT, adversarial perturbations) implemented from scratch or adapted for client-side execution. The strategic use of Web Workers to manage computationally intensive tasks without compromising UI responsiveness demonstrates a deep understanding of browser performance optimization. Furthermore, the integration of metadata manipulation, a custom protection pipeline, and a polished user interface built with modern frameworks like React and TailwindCSS, combined with careful architectural considerations, push it beyond typical intermediate-level projects.

Keep exploring

Related work

2025

Prismo Booth

Prismo Booth is a fun, client-side online photobooth application featuring a playful "Claymorphism" design style. Capture moments, apply filters, choose frames, and download your photo strips instantly!

2026

Hacker CCTV Face Mosaic

An intelligent face recognition project applying selective mosaic blur with cyberpunk glitch effects to a registered individual's face and body in real-time, leaving others unaffected.

From the journal

2026-11-15

Beautiful on the Surface, Engineered Underneath - My Legacy Website

Building a Personal Website into a Microservice Platform. An engineering retrospective on building a design-driven personal website backed by a microservice architecture, computer vision experiments, automated Docker builds, and production infrastructure."

2026-11-16

Engineering Lawise: Building an AI-Powered LegalTech Platform

From legal documents to actionable intelligence — exploring the engineering behind an AI-powered legal platform built with Next.js, polyglot microservices, PostgreSQL, pgvector, and OpenAI.

2026-11-15

AI Kitchen

Explore the building process of 'AI Kitchen' - a space where I turn raw ideas into complete products by optimizing my AI workflow.

Next project

Hacker CCTV Face Mosaic →