# Image Privacy Transform Evidence — Metadata Absence & Hashes (`damdamdoom/image-privacy-transform-evidence`) Actor

Fixed re-encode up to five inline JPEG, PNG, or WebP images and return count-only metadata presence and verified absence evidence.

- **URL**: https://apify.com/damdamdoom/image-privacy-transform-evidence.md
- **Developed by:** [Masatoshi Shimada](https://apify.com/damdamdoom) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Image Privacy Transform Evidence — Metadata Absence & Hashes

Fixed re-encode one to five inline JPEG, PNG, or WebP images and return count-only source metadata presence, verified output absence, Base64 output, dimensions, and SHA-256 evidence. Runtime network and filesystem operations are always zero.

Input is exactly `images[].imageBase64` plus global `targetFormat=png|jpeg|webp`. Canonical standard Base64 is required. URLs, paths, quality, resize, crop, metadata overrides, unknown fields, animation, and other formats are rejected.

### Privacy and safety boundary

- 5 images, 4 MiB decoded input total, 10,000 pixels per dimension
- 10 million decoded pixels total, checked from all headers before any full load
- single-frame JPEG/PNG/WebP only; 8 MiB output Base64 total
- magic/decoder match, strict verification/full decode, Pillow bomb warning/error rejection
- in-memory `BytesIO` only; no temporary file, network, Browser, Proxy, or Secret

Only fixed categories are returned: `exif`, `gps`, `iptc`, `xmp`, `icc`, `comment`, `text`, `other`, plus `detectedCount`. Source metadata values, tag/key names, thumbnails, and binary payloads are never returned or normally logged. Mandatory decoder structures are excluded by fixed Pillow 12.3.0 allowlists: JPEG 4, PNG 0, WebP 4.

EXIF orientation alone is applied to pixels, with only `orientationApplied` reported. Pixels are copied into a new RGB/RGBA image. Alpha-to-JPEG fails rather than guessing a background. Fixed profiles are PNG compression 9/optimize false, JPEG quality 90/4:2:0/progressive+optimize false, and WebP lossless/method 6. Output is reopened to verify format, dimensions, one frame, and absence of all eight metadata categories.

Warnings are limited to `ORIENTATION_APPLIED`, `COLOR_MODE_CONVERTED`, and `LOSSY_JPEG_OUTPUT`. `inputHash`, `outputHash`, `imageId`, and canonical `manifestHash` are deterministic for fixed input, dependency, and actor parser.

Visible pixels are retained. Faces, text, license plates, locations shown in pixels, and other PII or confidential content are not detected, blurred, removed, or anonymized. This is not a content-redaction product.

Official PyPI JSON checked 2026-08-15: `Pillow==12.3.0`, MIT-CMU, Python >=3.10, non-yanked CPython 3.14 Windows amd64 and manylinux x86\_64 wheels, with no default runtime dependency. Synthetic BytesIO gate verified JPEG/ZLIB/WebP features, header-first bounds, bomb/truncation rejection, orientation, metadata presence without value logging, deterministic fixed encodes, and reopen absence.

```
..\..\.venv\Scripts\python.exe -m unittest discover -s tests -v
..\..\.venv\Scripts\python.exe tools/local_actor_smoke.py
```

Valid requests create one default Dataset item and one built-in `apify-default-dataset-item`; all failures create zero. Unapproved price hypothesis: $0.005 per successful summary item, maximum $0.005/run. Real-image accuracy, codec differences across platforms, Cloud resource/cost, demand, revenue, and profit remain null.

# Actor input Schema

## `images` (type: `array`):

One to five images, with decoded input limited to 4 MiB total.

## `targetFormat` (type: `string`):

Global fixed target: png, jpeg, or webp.

## Actor input object example

```json
{
  "images": [
    {
      "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGPgUbIAAACkAGeY0OCYAAAAAElFTkSuQmCC"
    }
  ],
  "targetFormat": "png"
}
```

# Actor output Schema

## `results` (type: `string`):

Re-encoded Base64 images, count-only metadata evidence, hashes, warnings, and provenance.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "images": [
        {
            "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGPgUbIAAACkAGeY0OCYAAAAAElFTkSuQmCC"
        }
    ],
    "targetFormat": "png"
};

// Run the Actor and wait for it to finish
const run = await client.actor("damdamdoom/image-privacy-transform-evidence").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "images": [{ "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGPgUbIAAACkAGeY0OCYAAAAAElFTkSuQmCC" }],
    "targetFormat": "png",
}

# Run the Actor and wait for it to finish
run = client.actor("damdamdoom/image-privacy-transform-evidence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "images": [
    {
      "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGPgUbIAAACkAGeY0OCYAAAAAElFTkSuQmCC"
    }
  ],
  "targetFormat": "png"
}' |
apify call damdamdoom/image-privacy-transform-evidence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,damdamdoom/image-privacy-transform-evidence"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0D51cNYGLyjLUqBLn/builds/vHgHCcqGr6h7C398Z/openapi.json
