Reuse your settings
Configure compression, output format, resize and metadata options for repeated jobs.
TadPix Pro · Local workflows
Your image workflow, with fewer manual steps.
Use JavaScript to run repeatable image jobs in your browser. TadPix Pro uses the same local compressor — your images stay on your device.
Local processing · Pro required · No cloud API
What it is
Automation gives Pro users a JavaScript interface to TadPix’s existing image processing. Supply local files, choose settings and work with the results. It runs inside the TadPix browser page, not on a hosted image-processing server.
What you can do
Configure compression, output format, resize and metadata options for repeated jobs.
Process a batch in order, with a result for each image. One failed input does not stop the rest.
List your synced presets and apply one before processing another file or batch.
Pass image files from your browser workflow. No upload URL or remote storage is needed.
Get output Files and Blobs, sizes and per-image success or error details.
Use the same on-device processing as the compressor. Source images and outputs stay with you.
How it works
window.TadPixAutomation.The API is installed in the compressor after Pro access is verified. This page explains how to use it; it does not load the compressor or run your images.
API examples
Run these in the signed-in Pro compressor page. file, fileA and fileB represent local browser File or Blob objects supplied by your own workflow.
Choose reusable settings, then read the output File.
const api = window.TadPixAutomation;
if (!api) throw new Error('Open the compressor with Pro access first.');
await api.status();
await api.configure({ mode: 'smart', format: 'webp', removeMetadata: true });
const result = await api.processFile(file);
console.log(result.primary.file);Reuse the configured settings and inspect each result.
const batch = await api.processBatch([fileA, fileB]);
console.log(batch.counts);
console.log(batch.results);Preset settings sync with your account; images stay local.
const presets = await api.listPresets();
if (presets.length) {
await api.applyPreset(presets[0].id);
const output = await api.processFile(file);
console.log(output.primary.blob);
}Successful results contain outputs and primary. Batch results preserve input order and include success/failure counts. Whole-call errors provide a code and message.
Access & requirements
An authenticated Pro account with the Automation entitlement is required. Guest and Free users can read this guide, but cannot use the API. Pro supports up to 500 images per batch.
Images are processed locally in your browser. TadPix checks your session and Pro access and may fetch saved preset settings; those account requests do not send image content.
Read how local processing works →Open TadPix, confirm your Pro access and start with a local image.