# AlphaQuantize > Free, open-source desktop app (macOS, Windows, Linux) that makes PNG files 50–80% smaller while keeping their transparency, using the pngquant engine (libimagequant). It also saves WebP and AVIF, and includes a local MCP server so AI agents can inspect images and make smaller copies on the user's computer. Current version: 1.0.2. License: GPL-3.0. Everything runs locally: images are never uploaded, and the MCP server makes no network requests. The MCP server is the app itself started with `--mcp` (stdio); the user turns it on and adds it to their AI tools in Settings → MCP. ## Docs - [AlphaQuantize overview](https://alphapng.app/index.md): what the app does, formats, platforms and downloads - [Guide](https://alphapng.app/docs.md): how to use the app: Lite and Pro modes and their differences, comparing, every sidebar option, saving, every setting, keyboard shortcuts (with screenshots in light and dark) - [Filename Generation](https://alphapng.app/docs/filenames.md): every token in the filename format Save uses, with examples, and formatting the save time with PHP date() codes - [MCP server](https://alphapng.app/docs/mcp.md): what an agent can do, setup for each AI tool, the `image_info` and `compress_image` tools with every argument, errors, privacy and protocol details - [Version history](https://alphapng.app/version-history.md): every release and what changed - [Privacy](https://alphapng.app/privacy.md): what the app and site collect (almost nothing) ## Optional - [Everything above in one file](https://alphapng.app/llms-full.txt) - [Source code](https://git.intergrated.net/the-perfumery/alphaquantize): GitLab repository (GPL-3.0) - [Support](https://alphapng.app/contact/): contact form, or email help@alphapng.app --- # AlphaQuantize Smaller PNGs that keep their transparency. AlphaQuantize is a free, open-source desktop app for macOS, Windows and Linux that cuts PNG files by 50–80% by reducing them to a smart palette, with the alpha channel intact. Drag the slider, compare against the original on any background, save. It can also save WebP and AVIF, and it includes an MCP server so AI agents can use it. - Website: https://alphapng.app - Current version: 1.0.2 - License: GPL-3.0 (free and open source) - Source: https://git.intergrated.net/the-perfumery/alphaquantize - Made by The Perfumery, LLC. Built on libimagequant (the pngquant library) by Kornel Lesiński; inspired by ImageAlpha. Not affiliated with either project. ## What it does - **The pngquant engine:** built on libimagequant, the library behind pngquant: high-quality palettes of 2 to 256 colors with full alpha, so soft shadows and anti-aliased edges survive. - **See what you're trading:** a live preview with zoom up to 64× and a press-and-hold (Space) comparison with the original, as a whole or split. The size and savings update as you drag. - **Check every background:** checkerboards, solid colors, patterns or any color you pick, so you catch fringes and halos before your users do. - **Ways to shrink:** palette quantization (pngquant) for the smallest files; posterizing, which keeps truecolor but makes the data compress far better; a blurizer for flat areas; and a lossy filter. Save as PNG, WebP or AVIF, with resizing and trimming of transparent edges. - **Packed tight:** every PNG is losslessly packed with oxipng, with optional Zopfli when saving, so the size you see is the size you get. - **Lite and Pro modes:** Lite shows only the essentials (open, colors, save); Pro shows every option. - **Works with AI agents:** a built-in MCP server lets Claude, ChatGPT and Codex, Cursor, GitHub Copilot, Gemini, Zed and other agents inspect images and make smaller copies on your computer. See https://alphapng.app/docs/mcp/. - **Private:** images never leave your computer. No accounts, no tracking. - **Stays up to date:** signed builds that update themselves on macOS, Windows and the Linux AppImage. ## Download | System | Download | Requirements | | --- | --- | --- | | macOS | https://alphapng.app/download/macos (.dmg, Apple silicon and Intel) | macOS 11 or later; signed and notarized | | Windows | https://alphapng.app/download/windows (64-bit installer, .exe) | Windows 10 or 11; signed | | Linux | https://alphapng.app/download/linux (AppImage, updates itself) or https://alphapng.app/download/linux-deb (.deb) | x86_64; needs WebKitGTK 4.1 | Opens PNG, JPEG, GIF, WebP, BMP and TIFF, plus HEIC and AVIF where the system can decode them. ## Support Email help@alphapng.app or use https://alphapng.app/contact/. Release notes: https://alphapng.app/version-history/. --- # AlphaQuantize docs How to make smaller PNGs with AlphaQuantize: opening images, Lite and Pro, the sidebar, saving, and every setting. For AI agents, see the [MCP server](/docs/mcp/). ## Getting started 1. [Download AlphaQuantize](/#download) for macOS, Windows or Linux and open it. 2. The first time, choose **Lite** or **Pro** (you can switch any time). 3. Open an image: drag it onto the window (or the Dock icon on a Mac), use **File → Open…**, or open it with AlphaQuantize from Finder or Explorer. 4. Drag the **Colors** slider until it looks right, comparing with the original. 5. **Save**: by default as `NAME-optimized.png` beside the original. AlphaQuantize opens PNG, JPEG, GIF, WebP, BMP and TIFF, plus HEIC and AVIF where the system can decode them, and saves PNG, WebP or AVIF. It works on one image at a time: dropping several opens the first and says so. Everything happens on your computer; nothing is uploaded. ## Lite and Pro AlphaQuantize has two modes. **Lite** shows just what most people need; **Pro** shows every option. Switch with **Pro** at the top of the sidebar, in the **View** menu, or in **Settings → General**. The choice is kept, and every place follows it. ![Lite: the image, its colors and dithering, and the background](https://alphapng.app/screenshots/main-lite-light.webp) ([dark](https://alphapng.app/screenshots/main-lite-dark.webp)) ![Pro: every option, including format, method, file name and Advanced](https://alphapng.app/screenshots/main-pro-light.webp) ([dark](https://alphapng.app/screenshots/main-pro-dark.webp)) | | Lite | Pro | | --- | --- | --- | | Colors (or Quality) and dithering | Yes | Yes | | Views (Optimized, Split, Original) and zoom | Yes | Yes | | Preview backgrounds | Yes | Yes | | Image details, size and savings | Yes | Yes | | Format (PNG, WebP, AVIF) and lossless or lossy | From Settings → Defaults | In the sidebar | | Method (pngquant, Posterize, Blurizer, Lossy filter) | From Settings → Defaults | In the sidebar | | File name format | From Settings → Defaults | In the sidebar | | Advanced: speed, minimum quality, posterize floor, trim, resize, compression | From Settings → Defaults | In the sidebar | In Lite, everything that isn't shown comes from **Settings → Defaults**, so you can set it up once and keep the window simple. ## Comparing The tab hanging from the toolbar holds the view and zoom: - **Optimized** shows the result, **Original** the source, and **Split** both side by side with a divider you can drag (and rotate with the buttons at its ends). - Hold **Space** to see the other one for a moment: the original while showing Optimized or Split, the result while showing Original. - Zoom with **−** and **+**, pinch or scroll, or pick from the menu: **Zoom to Fit**, common zooms from 25% to 1600%, or **Custom** for any percentage up to 6400%. - In narrow windows the tab shows icons only, and the sidebar slides over the image. ![Split: the original left of the divider, the result right of it](https://alphapng.app/screenshots/main-split-light.webp) ([dark](https://alphapng.app/screenshots/main-split-dark.webp)) ## The sidebar The sidebar holds everything about the image and the result. Hide or show it with the button at the right of the toolbar; it slides in and out. ![The sidebar in Pro, every section open](https://alphapng.app/screenshots/sidebar-pro-light.webp) ([dark](https://alphapng.app/screenshots/sidebar-pro-dark.webp)) From the top: - **Pro and the color scheme.** Turn Pro on or off, and choose Auto, Light or Dark. - **Image.** Dimensions, resolution (DPI), megapixels, format, transparency, the original's size, the optimized size and saving (orange, with a tip, when it would be no smaller), and pngquant's quality score. - **Format** (Pro). PNG, WebP or AVIF. WebP can be lossless (the method's pixels, losslessly) or lossy; AVIF is lossy. - **Method** (Pro). **pngquant** reduces to a palette of 2–256 colors with full alpha (libimagequant), usually the smallest files. **Posterize** keeps truecolor with fewer levels per channel, so it compresses far better. **Blurizer** smooths noise in flat areas and gradients, keeps edges, then posterizes. **Lossy filter** nudges pixels within a tolerance so PNG compression works better. - **Colors** (or Levels, Tolerance, Quality, depending on the method and format). Drag for any value, hold **Shift** to snap to the ticks, or type an exact number in the field. **Original** at the right end keeps the image as it is. With pngquant, the slider stops at the number of colors the image actually has when that's under 256. - **Dithering.** On or off, and how strong. Dithering hides banding in gradients; turning it down can make files smaller. - **Background.** Checkerboards, solid colors, patterns, the icon's spectrum, three photos, or any color you pick, so you can catch fringes and halos. The background is only behind the image. - **Filename** (Pro). The name Save suggests, from a format with tokens such as `{name}`, `{colors}`, `{quality}` or a date. The ? beside it explains every token; see [Filename Generation](/docs/filenames/). - **Advanced** (Pro). pngquant's **speed** (slower is better), a **minimum quality** (keeps the original if the result would score lower), a **posterize floor** for displays with fewer bits per channel, **trim transparent edges**, **resize** by width, height or scale, the PNG **compression effort** (Best uses Zopfli when saving), and **Keep DPI** for PNGs. In Lite the sidebar is shorter: Pro and the color scheme, Image, Colors, Dithering and Background. ![The sidebar in Lite](https://alphapng.app/screenshots/sidebar-lite-light.webp) ([dark](https://alphapng.app/screenshots/sidebar-lite-dark.webp)) ## Saving **File → Save…** suggests a name from the filename format (`{name}-optimized` by default) in the image's folder, in the chosen format; choose another format in the save panel to save in it. If the result would be no smaller than the original, AlphaQuantize says so first and saves only if you choose **Save Anyway**: fewer colors or another method usually helps. On a Mac with ImageOptim installed, **Run ImageOptim after saving** (in Pro, with the PNG format) passes saved PNGs straight on to it. ## Settings Open **Settings** with **⌘,** on a Mac or **Ctrl+,** on Windows and Linux. Changes apply at once. ### General The mode (Lite or Pro), whether AlphaQuantize quits when its last window closes (macOS), and the default filename format ([Filename Generation](/docs/filenames/) lists every token). ![Settings → General](https://alphapng.app/screenshots/settings-general-light.webp) ([dark](https://alphapng.app/screenshots/settings-general-dark.webp)) ### Appearance The color scheme (Auto follows your computer), and whether the view buttons and Original's mark use spectrum swatches or line icons. ![Settings → Appearance](https://alphapng.app/screenshots/settings-appearance-light.webp) ([dark](https://alphapng.app/screenshots/settings-appearance-dark.webp)) ### Updates Check for updates when AlphaQuantize opens and every 6 hours, and either tell you or download the update and install it when you quit. **Check Now** checks straight away. The install ID only goes with messages you send from **Contact Support…**. ![Settings → Updates](https://alphapng.app/screenshots/settings-updates-light.webp) ([dark](https://alphapng.app/screenshots/settings-updates-dark.webp)) ### Shortcuts Every keyboard shortcut, and a field to change it: click it and press the new keys. The arrow resets it. ![Settings → Shortcuts](https://alphapng.app/screenshots/settings-shortcuts-light.webp) ([dark](https://alphapng.app/screenshots/settings-shortcuts-dark.webp)) ### Defaults What new images start with: the view, split direction, zoom and sidebar; the format, method, colors, dithering and Advanced options; and the background. Choose whether they apply when the application is opened, always (for every image), or never (keep the settings you used last). In Lite, these also stand in for the options Lite doesn't show. ![Settings → Defaults](https://alphapng.app/screenshots/settings-defaults-light.webp) ([dark](https://alphapng.app/screenshots/settings-defaults-dark.webp)) ### MCP The switch that lets AI tools use AlphaQuantize, their activity, and one-click setup for Claude, ChatGPT and Codex, Cursor, VS Code, Windsurf, Gemini CLI, Antigravity and Zed. See the [MCP server docs](/docs/mcp/). ![Settings → MCP](https://alphapng.app/screenshots/settings-mcp-light.webp) ([dark](https://alphapng.app/screenshots/settings-mcp-dark.webp)) ## Keyboard shortcuts The defaults; change any of them in **Settings → Shortcuts**. On Windows and Linux, **Ctrl** takes the place of **⌘**. | Command | Shortcut | | --- | --- | | Open… | ⌘O | | Save… | ⌘S | | Clear | ⇧⌘⌫ | | Settings… | ⌘, | | Show Optimized | ⌘1 | | Split Comparison | ⌘D | | Show Original | ⌘Y (or hold Space) | | Rotate Split | ⌥⌘D | | Zoom In / Zoom Out | ⌘= / ⌘− | | Actual Pixels | ⌘0 | | Natural Size (DPI) | ⌥⌘0 | | Zoom to Fit | ⌘9 | | Show/Hide Inspector (the sidebar) | ⌥⌘I | | Fewer / More Colors | ⌘[ / ⌘] (or [ and ] outside a text field) | ## AI agents (MCP) AlphaQuantize includes an MCP server, so AI agents can inspect images and make smaller copies on your computer. Turn it on in **Settings → MCP**. The [MCP server docs](/docs/mcp/) list what agents can do, setup for each AI tool, and both tools with every argument. ## Getting help **Help → Contact Support…** opens a window to send a question, problem or idea; the answer comes by email. Along with your name, email and message, it sends the app's version, your operating system and the install ID, and whatever you choose of: - **Screenshots**, up to 3: drag them in, paste one, or choose files. They're made smaller if large and go by email only. - **Details from the app**: the open image's size, colors and settings, the result, and recent problems, with no file names or paths. **Show what is sent** shows the exact text first. - **The image you have open**, as it is, by email only. It's never ticked for you. ![Contact Support, with a screenshot, the details from the app and the open image](https://alphapng.app/screenshots/support-light.webp) ([dark](https://alphapng.app/screenshots/support-dark.webp)) Or email [help@alphapng.app](mailto:help@alphapng.app). See [Privacy](/privacy/) for what happens to your message. --- # Filename Generation **Save…** suggests a name made from a filename format: text with tokens in braces, such as `{name}-optimized`. Set the format for an image in the sidebar's **Filename** (Pro), and the format new images start with in **Settings → General**. ## How it works The extension always follows the save format (.png, .webp or .avif), so it isn't part of the filename format. `{name}-optimized` → `photo-optimized.png` (the default) - **Case and spaces in a token don't matter.** `{ NAME }`, `{Name}` and `{name}` are the same token. Your format is kept exactly as you type it. - **A token that doesn't apply is left out**, along with one separator next to it: `{name}-{quality}` → `photo.png` (a PNG has no quality). - **An unknown token stays as typed** and is underlined in red in the field, so a typo is easy to spot: `{name}-{colours}` → `photo-{colours}.png`. - **Characters a filename can't have** (`/ \ : * ? " < > |`) become `-`. - **Inserting tokens.** Click **Tokens** under the field for the full list, or type `{` for suggestions (↑ and ↓ to choose, Return or Tab to insert). The **?** beside the field opens this reference in the app. ## Tokens The examples use a sample image: *photo.png*, 1024 × 768 at 144 DPI, made with pngquant at 256 colors, saved at 9:05:07 AM on March 14, 2026. ### Source | Token | What it is | Example | | --- | --- | --- | | `{name}` | Source filename, without its extension | `photo` | | `{srcext}` | Source's extension | `png` | | `{srcsize}` | Source dimensions (W×H) | `1024x768` | ### Output | Token | What it is | Example | | --- | --- | --- | | `{format}` | png, webp or avif | `png` | | `{mode}` | lossless or lossy (WebP, AVIF) | *(empty here)* | | `{size}` | Output dimensions, after trim and resize | `1024x768` | | `{width}` | Output width | `1024` | | `{height}` | Output height | `768` | | `{scale}` | Resize %, empty at 100% | *(empty here)* | | `{trim}` | "trimmed" when Trim is on | *(empty here)* | | `{dpi}` | Kept DPI, empty when stripped or unknown | `144` | ### Method | Token | What it is | Example | | --- | --- | --- | | `{method}` | pngquant, posterize, blurizer, lossy or original | `pngquant` | | `{amount}` | The method's value: colors, levels or tolerance | `256` | | `{colors}` | pngquant colors | `256` | | `{levels}` | Posterize/Blurizer levels | *(empty here)* | | `{tolerance}` | Lossy filter tolerance | *(empty here)* | | `{quality}` | WebP/AVIF lossy quality | *(empty here)* | | `{dither}` | Dither %, e.g. dither75; empty when off | `dither100` | | `{speed}` | pngquant speed | `4` | | `{minquality}` | pngquant minimum quality, empty when off | *(empty here)* | | `{posterize}` | Posterize floor, e.g. rgb565; empty when off | *(empty here)* | | `{effort}` | Compression effort: fast, better or best | `fast` | ### Time (when you press Save) | Token | What it is | Example | | --- | --- | --- | | `{date}` | Save date: `{ts:Y-m-d}` | `2026-03-14` | | `{time}` | Save time: `{ts:Hi}` | `0905` | | `{datetime}` | Both: `{ts:Y-m-d-Hi}` | `2026-03-14-0905` | For any other date or time layout, see [Custom Timestamps](#custom-timestamps). ## Custom Timestamps Use `{ts:FORMAT}` (or `{timestamp:FORMAT}`) with [PHP date() codes](https://www.php.net/manual/en/datetime.format.php) for the time you press Save, in your computer's time zone. - The token's name ignores case and spaces, but the format after the colon is case-sensitive: `m` is the month and `i` the minutes. - Characters that aren't codes are kept as they are, and a backslash keeps a code letter as a letter (`\W` is a W). - `{ts}` alone is Unix seconds. `{name}-{ts:Y-m-d}` → `photo-2026-03-14.png` `{name}-{ts:Y-m-d_His}` → `photo-2026-03-14_090507.png` `{name}-{ts:D-j-M}` → `photo-Sat-14-Mar.png` `{name}-{ts:Y-\WW}` → `photo-2026-W11.png` (the ISO week, with a literal W before it) `{name}-{ts}` → `photo-1773479107.png` > A colon in a filename shows as a slash in Finder and isn't allowed on Windows, so `{ts:H:i}` saves as `09-05`. ### Day | Code | What it is | Example | | --- | --- | --- | | `d` | Day of the month, 2 digits (01–31) | `14` | | `j` | Day of the month (1–31) | `14` | | `D` | Day name, 3 letters (Mon) | `Sat` | | `l` | Day name (Monday) | `Saturday` | | `N` | Day of the week, ISO (1 = Monday … 7) | `6` | | `w` | Day of the week (0 = Sunday … 6) | `6` | | `S` | English ordinal suffix (st, nd, rd, th) | `th` | | `z` | Day of the year (0–365) | `72` | ### Week | Code | What it is | Example | | --- | --- | --- | | `W` | ISO week number (01–53) | `11` | ### Month | Code | What it is | Example | | --- | --- | --- | | `m` | Month, 2 digits (01–12) | `03` | | `n` | Month (1–12) | `3` | | `M` | Month name, 3 letters (Jan) | `Mar` | | `F` | Month name (January) | `March` | | `t` | Days in the month (28–31) | `31` | ### Year | Code | What it is | Example | | --- | --- | --- | | `Y` | Year, 4 digits (2026) | `2026` | | `y` | Year, 2 digits (26) | `26` | | `o` | ISO week-numbering year | `2026` | | `L` | Leap year (1 or 0) | `0` | ### Time | Code | What it is | Example | | --- | --- | --- | | `H` | Hour, 24-hour, 2 digits (00–23) | `09` | | `G` | Hour, 24-hour (0–23) | `9` | | `h` | Hour, 12-hour, 2 digits (01–12) | `09` | | `g` | Hour, 12-hour (1–12) | `9` | | `A` | AM or PM | `AM` | | `a` | am or pm | `am` | | `i` | Minutes (00–59) | `05` | | `s` | Seconds (00–59) | `07` | | `v` | Milliseconds (000–999) | `000` | | `u` | Microseconds (000000–999999) | `000000` | ### Time zone | Code | What it is | Example | | --- | --- | --- | | `e` | Time zone name (America/Louisville) | | | `T` | Time zone abbreviation (EST) | | | `P` | Offset from UTC with a colon (-05:00) | | | `O` | Offset from UTC (-0500) | | ### Other | Code | What it is | Example | | --- | --- | --- | | `U` | Unix seconds | `1773479107` | | `\x` | A backslash shows the next character as is (\T → T) | | --- # MCP server AlphaQuantize includes a Model Context Protocol (MCP) server, so AI agents such as Claude, ChatGPT and Codex, Cursor and GitHub Copilot can inspect images and make smaller copies of them on your computer, with the same engine as the app. Nothing is uploaded: the server runs locally, alongside the agent. ## What an agent can do - **Look at an image:** its format, size in pixels and bytes, whether it has transparency, its DPI, and how many distinct colors it uses. - **Make a smaller PNG that keeps its transparency:** quantize it to a palette of 2 to 256 colors (the pngquant engine, libimagequant), posterize it, smooth flat areas (blurizer) or apply a lossy filter. - **Convert to WebP or AVIF,** lossless or lossy, at a chosen quality. - **Resize and trim:** scale to a width or height (keeping the aspect ratio), or crop away fully transparent edges. - **Work through many files:** an agent can call the tools once per image, for example to shrink every PNG in a folder, then report the savings. Every copy is written beside the source as `NAME-optimized.EXT`, or to a path the agent chooses. Existing files are never overwritten unless the agent asks to, and the result says when a copy came out no smaller than the original. ## Turn it on 1. Install AlphaQuantize from [alphapng.app](https://alphapng.app/#download) and open it once. 2. Open **Settings → MCP** and turn on **Allow AI tools to use AlphaQuantize**. 3. Under **Add to AI Tools**, click **Add** next to each tool you use, then restart that tool. Settings → MCP can add AlphaQuantize to these tools in one click (it edits only their `alphaquantize` entry, keeps comments in their config, and backs the file up first): | AI tool | Config file it edits | | --- | --- | | Claude Desktop | `claude_desktop_config.json` (Claude's app-data folder) | | Claude Code | `~/.claude.json` (every project) | | ChatGPT desktop and Codex | `~/.codex/config.toml` (shared by the ChatGPT desktop app, the Codex CLI and its IDE extension) | | Cursor | `~/.cursor/mcp.json` | | VS Code (GitHub Copilot agent mode) | `Code/User/mcp.json` | | Windsurf | `~/.codeium/windsurf/mcp_config.json` | | Gemini CLI | `~/.gemini/settings.json` | | Antigravity | `~/.gemini/config/mcp_config.json` | | Zed | `~/.config/zed/settings.json` (`context_servers`) | ChatGPT's web and phone apps only connect to remote servers, so use the ChatGPT desktop app. ## Add it by hand The server is the app itself, started with `--mcp`. It speaks MCP over standard input and output, opens no window, and stops when the agent disconnects. **Settings → MCP → Other clients** shows the exact command for your installation, ready to copy. Usually it is: | System | Command | | --- | --- | | macOS | `/Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize --mcp` | | Windows | `alphaquantize.exe --mcp`, in the folder AlphaQuantize was installed to (for the default per-user install, under `%LOCALAPPDATA%`) | | Linux (.deb) | `/usr/bin/alphaquantize --mcp` | | Linux (AppImage) | the AppImage's own path, then `--mcp` | Most clients take this JSON, under `mcpServers` in their config: ```json { "mcpServers": { "alphaquantize": { "command": "/Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize", "args": ["--mcp"] } } } ``` Claude Code, from a terminal: ```sh claude mcp add --scope user alphaquantize -- /Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize --mcp ``` Codex and the ChatGPT desktop app (`~/.codex/config.toml`): ```toml [mcp_servers.alphaquantize] command = '/Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize' args = ["--mcp"] ``` VS Code (`mcp.json`) uses `servers`, with a type: ```json { "servers": { "alphaquantize": { "type": "stdio", "command": "/Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize", "args": ["--mcp"] } } } ``` Zed (`settings.json`) calls them `context_servers`: ```json { "context_servers": { "alphaquantize": { "command": "/Applications/AlphaQuantize.app/Contents/MacOS/alphaquantize", "args": ["--mcp"] } } } ``` ## Tools ### image_info Size, format, transparency, DPI and number of distinct colors of an image file: PNG, JPEG, GIF, WebP, BMP and TIFF, plus HEIC and AVIF where the system can decode them. | Argument | Type | Description | | --- | --- | --- | | `path` | string, required | Absolute path of the image. | Returns `path`, `format`, `width`, `height`, `bytes`, `hasAlpha`, `dpi` (or null) and `colors`. ### compress_image Makes a smaller copy of an image, keeping its transparency, and saves it as PNG, WebP or AVIF. Writes beside the source as `NAME-optimized.EXT` unless `output` is given, and never overwrites an existing file unless `overwrite` is true. Options left out use the app's built-in defaults. | Argument | Type and default | Description | | --- | --- | --- | | `path` | string, required | Absolute path of the source image. | | `output` | string | Absolute path to write. Default: beside the source, `NAME-optimized.EXT`. | | `overwrite` | boolean, `false` | Replace `output` if it exists (including the source itself). | | `format` | `png`, `webp` or `avif`; `png` | File format to save. | | `method` | `pngquant`, `posterize`, `blurize` or `lossy`; `pngquant` | pngquant: a palette of up to `colors`; posterize: fewer levels per channel; blurize: smooths flat areas; lossy: a lossy filter that keeps PNG. | | `colors` | 2–256, `256` | Palette size for pngquant, or how strong the other methods are (fewer means smaller). | | `dither` | boolean, `true` | Dither the palette. | | `dither_level` | 0–1, `1` | Dithering strength. | | `min_quality` | 0–100, `0` | pngquant: fail instead of going below this quality (0 turns it off). | | `speed` | 1–10, `4` | pngquant speed: 1 is slowest and best, 10 fastest. | | `posterize_bits` | 0–4, `0` | pngquant: round off this many low bits per channel first (the posterize floor), for displays with fewer bits per channel. | | `compression` | `fast`, `better` or `best`; `fast` | PNG compression effort (best uses Zopfli and is slow). | | `webp_lossy` | boolean, `false` | WebP only: encode lossily with `quality` instead of losslessly from the method's pixels. | | `quality` | 0–100, `80` | Quality for lossy WebP and AVIF. | | `keep_dpi` | boolean, `true` | PNG: keep the source's DPI. | | `trim` | boolean, `false` | Crop away fully transparent edges first. | | `width` | integer | Resize to this width (keeps the aspect ratio unless `height` is also given). | | `height` | integer | Resize to this height. | Returns `output`, `format`, `width`, `height`, `originalBytes`, `outputBytes`, `savedPercent`, `colors` and `quality` (pngquant), `millis`, `larger` and `warning`. When the copy is no smaller than the source, `larger` is true and `warning` explains it; the copy is still saved, so the agent can tell you and suggest fewer colors or another method. ### Errors Problems come back as tool errors the agent can read and act on, for example a relative path (``"`path` must be an absolute path"``), a missing file, an output that already exists, a result below `min_quality`, or the server being turned off. ## Example requests - "How many colors does `~/Desktop/logo.png` use, and does it have transparency?" - "Make a 64-color version of `~/Desktop/logo.png` and tell me how much smaller it is." - "Shrink every PNG in `~/Projects/site/images` with AlphaQuantize, keep the originals, and give me a table of the savings." - "Convert `hero.png` to a 1200-pixel-wide lossy WebP at quality 80." - "Trim the transparent edges of `icon.png` and save it as `icon-trimmed.png`." ## Control and privacy - **Off switch:** Settings → MCP → **Allow AI tools to use AlphaQuantize**. When it's off, agents can still start the server, but every tool call is refused with a message saying so. It takes effect immediately, without restarting the agent. - **Activity:** every request is logged on your computer: when, which app (the name it gave and the program that started the server), the tool, its arguments and what happened. Open it from **Settings → MCP → Activity…** or the **MCP** box in the status bar, which flashes on each call. The log is `mcp-log.jsonl` in AlphaQuantize's settings folder and is never sent anywhere. - **Local only:** the server reads and writes files on your computer and makes no network requests. Paths must be absolute. ## Protocol details - Transport: standard input and output (stdio), newline-delimited JSON-RPC 2.0. - MCP versions: 2025-06-18, 2025-03-26 and 2024-11-05. - Capabilities: tools (`image_info`, `compress_image`). No resources or prompts. - Server name: `alphaquantize`. --- # Privacy Short version: your images never leave your computer, and nobody is tracking you. ## The app - Images are opened, compressed and saved entirely on your computer. Nothing is uploaded, unless you choose to send an image with a support request (below). - To check for updates, the app downloads a small file (`latest.json`) from our GitLab server a few seconds after it starts and every six hours. The request says which version you have and your operating system and processor type (for example `AlphaQuantize/1.0.0 (macOS; aarch64) updater`), and nothing else. - If you use **Help → Contact Support…**, your name, email address and message are sent with the app's version, your operating system and a random ID made when the app was installed. That ID only helps tell several messages from one install apart; it isn't linked to you or your computer. You can also choose to send screenshots, the image you have open, and details from the app (the image's size, colors and settings, the result and recent problems, without file names or paths); the window shows the details before you send. Screenshots and the image go to us by email only. - The [MCP server](/docs/mcp/) for AI agents runs on your computer too: it reads and writes files there and makes no network requests. Its activity log stays on your computer. ## This site - No cookies, no analytics, no third-party scripts or fonts. The color scheme you choose is remembered in your browser only. - The server's access logs record downloads, so we can count them by month, platform and approximate location (country, state or province, city, worked out by Amazon CloudFront). IP addresses are not stored in these counts. - The support form sends your message to us by email and as a private issue on our GitLab server, where only we can read it. Screenshots you add are made smaller in your browser (which also removes hidden details like location) and sent to us by email only. ## Questions Email [help@alphapng.app](mailto:help@alphapng.app) or use the [support form](/contact/). --- # AlphaQuantize version history Every release and what changed. Also at https://alphapng.app/version-history/. ## 1.0.2 - 2026-12-04 No more light flash when the window opens in dark mode. ### Fixed - In dark mode, the main window no longer flashes a light, half-built page as it opens. It now shows once it's ready, and every window starts in the right color scheme. ## 1.0.1 - 2026-12-03 Settings → MCP shows each AI tool's own icon. ### Changed - Settings → MCP shows each AI tool's real icon, taken from the installed app. Command-line tools such as Claude Code, Codex and Gemini CLI show their logo instead. - Linux: Settings → MCP also finds Cursor, VS Code, Windsurf, Antigravity and Zed by their app menu entries. ## 1.0.0 - 2026-12-03 AlphaQuantize 1.0: a Contact Support window with screenshots, the app's details and the open image. ### New - **Contact Support** (Help menu) is now its own window: attach up to 3 screenshots (drag, paste or choose; made smaller and sent by email only), the details from the app (the open image's size, colors and settings, the result and recent problems, without file names or paths; **Show what is sent** shows them first), and the image you have open (never ticked for you). Your name and email are remembered. The support form on alphapng.app takes screenshots too. ### Changed - Clear moved from beside the file name to the end of the view tab, after the zoom. - The MCP box is always in the status bar, with a switch to turn the server on and off; while it's off, the box is very faint. ### Fixed - When an update fails to install, the update window says why in plain words and offers Close, Try Again and Download from Website, instead of leaving only disabled buttons. ## 0.9.0 - 2026-12-03 The first release: lossy PNG compression with alpha, on macOS, Windows and Linux. ### New - **MCP server.** AI apps can use AlphaQuantize as tools (`image_info` and `compress_image`, any method and format): `AlphaQuantize --mcp` runs it in the background with no window. Settings → MCP adds it to Claude Desktop, Claude Code, ChatGPT & Codex, Cursor, VS Code, Windsurf, Gemini CLI, Antigravity and Zed in one click (their config is backed up first, and comments in it are kept), or copy the command or JSON for other apps. It looks for the AI apps where they're installed as well as for their settings, so a new install shows up before its first launch, and a settings folder left behind by an uninstalled app is marked "App not found". A switch turns the server off (tool calls are then refused). Every request is logged (when, which app, the tool, its file and what happened), with a count in Settings → MCP → Activity and a log window to browse and filter it. While the server is on, an MCP box in the status bar flashes on each call; its dot shows the latest calls, and the rest of it opens Settings → MCP. - macOS: AlphaQuantize quits when the last window is closed (Settings → General → App; turn it off to keep it in the Dock). Dropping images on the Dock icon brings the window back. - Open JPEG, GIF, WebP, BMP, TIFF, HEIC and AVIF from Finder's Open With and the Dock icon too (macOS and Linux; AlphaQuantize never becomes their default app). Dropping several images opens the first and says so. - Dark mode, in every window: Apple's dark system blue (#0A84FF) on near-black surfaces, a lighter blue (#409CFF) for links and small labels, controls that brighten on hover, and checkboxes (black check), radio buttons, switches (a blue thumb when on), sliders, segmented controls and text fields to match (design/dark-mode-colors.md). - A warning when the optimized image would be no smaller than the original: in the inspector, a confirmation before saving (Save Anyway or Cancel), and in the MCP tool's result. - With pngquant, the Colors slider stops at the number of colors the image actually has (when that's under 256). - The inspector slides in and out, and the preview widens and narrows with it. - Settings → MCP laid out in cards: Service (the switch, with what it's doing, and Activity), then Add to AI Tools with each tool's status, the ones not found on one line, and Other clients behind a link. - Settings in more, shorter tabs: General (mode, quitting, default filename format), Appearance, Updates, Shortcuts, Defaults and MCP, with explanations in info tips. The Filename Format help has tabs (Rules, Tokens and Formatting Timestamps) hanging from the top of the window, like the viewer's Optimized / Split / Original tab. - New app icon: the reduced half now has 8 bold blocks (4 hues × 2 shades) against the smooth spectrum, so the before and after reads clearly even at small sizes. - **Lite and Pro.** Lite shows just the essentials (colors or quality, dithering, background, the views and zoom); format, method, file name and Advanced come from Settings → Defaults. Pro shows every option. Switch with Pro at the top of the sidebar, in the View menu or in Settings → General; the choice is kept and every place follows it. The first launch asks which you'd like, with what each includes and a link to more on the site; the menus wait until you choose. - Four methods: **pngquant** (2–256 colors with libimagequant, the pngquant engine), **Posterize** (fewer levels, truecolor), **Blurizer** (smooths noise in flat areas and gradients, keeps edges, then posterizes) and **Lossy filter** (nudges pixels within a tolerance so PNG compression works better; truecolor, no banding), with adjustable dithering where it applies. - Advanced options for pngquant: speed, a minimum quality (keeps the original when the result would score lower, like pngquant's `--quality`) and a posterize floor for RGB565/RGB444-style displays. - Live preview with zoom up to 6400%, pinch and scroll, and a hold-**Space** comparison with the original. A tab hanging from the toolbar, centred over the preview, holds the view (Optimized, Split, Original, each with a small spectrum swatch, or a line icon with Settings → General → Icons; icons only in narrow windows, where the zoom menu also shrinks to its chevron) and zoom: − and +, and a menu with Zoom to Fit, common zooms (25% to 1600%) and Custom for any percentage. - Split comparison (**View → Split Comparison**, ⌘D / Ctrl+D): the original left of a draggable divider, the optimized image right of it, at any zoom. - Fifteen preview backgrounds plus any custom color, with the image shown on each swatch (collapsed until you need it): checkerboards, solid colors, patterns, the icon's spectrum, and three photos from Unsplash (McWay Falls, a sunlit forest, the Louisville skyline at dusk). The background is drawn only behind the image, on a plain canvas that follows the color scheme, so the image's edges always show; a photo's credit shows in the corner and links to it on Unsplash. - About window with the app icon, version, Check for Updates, links (website, source) and credits. **Version History** (also in the app menu on macOS, Help elsewhere) and the **License** open in their own windows, built into the app. - The update dialog shows every change since your version, with breaking changes pinned at the top; installing an update with breaking changes asks first, and automatic installs hold it back. - Settings (⌘, / Ctrl+,): update options (check at launch, every 6 hours, or download and install when you quit), keyboard shortcuts you can change, and defaults for every option (view, split direction, zoom, inspector, method, colors, dithering, advanced options, background), applied when the app opens, for each image, or never. - Version and update status in the status bar; click the version to check for updates. - Image details in the inspector: dimensions, format, transparency, original and optimized size, quality. - Clear the open image (the Clear button beside the image's size in the toolbar, the File menu, or right-click). - Advanced → **Trim transparent edges** and **Resize** (width, height or scale; change one and the others follow, aspect kept). Applied before the method, and the original in comparisons is trimmed and resized the same way so they line up. While Trim is on (or as a preview when you point at it), the cut edges are hatched in red around the kept part. - Save names from a format: the inspector's **Filename** section (default in Settings → Filename), `{name}-optimized` to start, so `photo.png` saves as `photo-optimized.png`. Tokens for the source, output, method and settings (`{colors}`, `{format}`, `{size}`, `{quality}`…) and the save time (`{date}`, `{time}`, or any PHP `date()` format with `{ts:Y-m-d_His}`). Insert them from the floating **Tokens** window or by typing `{`; case and spaces in a token don't matter, a live preview shows the name, and the **?** opens a help window with every token and timestamp code. - The amount slider (colors, levels, tolerance) drags one value at a time; hold ⇧ to snap to its ticks. ⇧-dragging Quality moves in steps of 10. - The split divider turns to any angle: drag the outer 15% of the line (or its rotate buttons near each end) to rotate it, ⇧ snapping to 45°; click a rotate button for 90° (⇧-click 45°); double-click for upright. Drag the middle to move it. The cursor shows which, and the angle or position shows beside the pointer while you drag. - Color scheme: System, Light or Dark, from the top of the sidebar or Settings → General; every window follows it. - Format is a menu (PNG, WebP lossless, WebP lossy, AVIF), each with a short description and help; the button shows the choice, with WebP's mode in small caps. - Save as PNG, WebP or AVIF: all keep full transparency. WebP lossless keeps the method's pixels exactly (usually 20–30% smaller than PNG); WebP lossy and AVIF use a Quality setting instead. Choose in the inspector or the Save dialog; the default is in Settings → Defaults. - Opens HEIC/HEIF and AVIF with the system's decoder (macOS ImageIO; Windows with Microsoft's HEIF/AV1 extensions; Linux with libheif). The empty window shows which formats this computer can open. - Exact values for every method: colors (pngquant), levels per channel 2–256 (Posterize, Blurizer; below the slider's 17) and tolerance 0–32 (Lossy filter; past the slider's ±14), typed in the field beside the slider (↑/↓ step one, ⇧ to the next stop). The slider snaps to the nearest stop. - DPI: the source's resolution (PNG, JPEG, TIFF, BMP) is kept in the saved PNG and shown in the inspector. Zoom goes by screen pixels, so 100% (Actual Pixels) is pixel-exact on Retina and HiDPI screens; Natural Size shows the image at the size its DPI asks for, and Zoom to Fit never enlarges past it. Advanced → Keep DPI turns it off to strip the resolution. - Holding Space shows the other view (the original while looking at the optimized image, and the reverse). - A desktop-style window: a unified toolbar (the title bar on macOS), an inspector that can be hidden (⌥⌘I / Ctrl+Alt+I) and floats over the preview in narrow windows, a native right-click menu on the preview, and shortcut hints for your platform. - Remembers the window's size and position, whether the inspector is open (or Settings can always show or hide it) and which of its sections are expanded; on macOS, closing the window keeps the app in the Dock. - The app icon: a smooth color spectrum and its 32-color posterized version, split by a slider handle. On macOS 26 it is a Liquid Glass icon (the handle is glass) with no Dock backdrop; earlier macOS, Windows and Linux get matching icons. - File size and savings update as you drag; every result is losslessly packed with oxipng, with optional Zopfli on save. - Opens PNG, JPEG, GIF, WebP, BMP and TIFF. Drag and drop, File → Open, or Open With from your file manager. - Runs ImageOptim after saving, on Macs that have it. - Updates itself (macOS, Windows and the Linux AppImage), and **Help → Contact Support…** to reach us.