API & Programmatic Use
As a privacy-focused application, pixl.quest operates 100% within your browser. There is no server-side API that processes your data, because your images are never sent to our servers. This ensures your information remains completely private.
For programmatic image manipulation in your own projects, you can use the built-in browser APIs like the Canvas API. We've compiled a list of common code snippets for your convenience on the Developer Tools page. These examples demonstrate how to perform common tasks like resizing, converting, and reading pixel data directly in JavaScript.
Core Concepts
- Canvas API: The
<canvas>element is the cornerstone of client-side image processing. You can draw an image onto a canvas, manipulate its pixel data, and export the result as a new image. - Web Workers: For performance-intensive tasks, it's best to use a Web Worker to avoid freezing the main user interface thread.
- File API: The
FileReaderandBlobAPIs allow you to handle user-selected files and create new ones programmatically.