# JPEG EXIF Cleaner — Lossless Cleanup & SHA-256 Proof (`adaptive_lollipop_mlu/jpeg-evidence-vault`) Actor

Remove selected JPEG EXIF without recompression. Preserve orientation and ICC; get a private ZIP with SHA-256 integrity evidence. API-first batches: 10 unique JPEGs minimum, 20 files maximum. $0.005 per unique deliverable image. No startup or dataset event.

- **URL**: https://apify.com/adaptive_lollipop_mlu/jpeg-evidence-vault.md
- **Developed by:** [RV AZ](https://apify.com/adaptive_lollipop_mlu) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 successfully cleaned jpegs

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### JPEG Evidence Vault: EXIF cleanup without recompression

Process authorized JPEG batches without recompressing their image data. Remove supported EXIF metadata while preserving orientation, ICC profiles and every non-EXIF segment. Get a private ZIP with before/after SHA-256 evidence for each result.

Built for automated image pipelines and software agents. This is an API-first service: starting a run opens a temporary authenticated upload session. Upload your batch to that session, then retrieve the completed ZIP from the run's persistent Output after execution finishes.

### Pilot pricing

**USD 0.005 per unique JPEG successfully processed and stored for authenticated retrieval.** No startup event, no dataset event and no additional platform-usage surcharge configured for standard runs. Ten compatible unique images are required per batch. At most twenty submitted images and twenty chargeable results per run: **USD 0.10 maximum image-event charge**. Rejected files and duplicate bytes within the same run add no image event.

Charging begins only after the ZIP is stored, read back and available. Do not start a new run to retry an uncertain payment: it creates a new order. Free-plan activity is not evidence of seller income.

### Supported files

Baseline 8-bit grayscale/RGB JPEG, at most 1 MiB and 12 megapixels per image. Progressive, CMYK, corrupt, oversized and unsupported JPEGs are refused. No URL fetching or local-file paths are accepted by the service.

You must confirm processing rights, consent to EXIF removal and consent to private output storage. GPS, capture dates and device EXIF fields are removed. Orientation is retained. XMP, IPTC, comments and ICC remain and can contain identifying information: **this is not universal anonymization**. Detected EXIF rights/color tags and APP11 provenance blocks are refused rather than silently removed.

### API workflow

1. Generate a new high-entropy URL-safe session secret locally. Put only its SHA-256 in Actor input, together with the three consent flags set to true. Do not put images, your Apify API token or the plaintext session secret in Actor input.
2. Create one run with `memory=512`, `timeout=120`, `restartOnError=false` and `maxTotalChargeUsd=0.10`. Keep the returned run ID. If creation times out, locate that existing run; never create another automatically.
3. Poll the run and its `containerUrl` until `GET /status` accepts `Authorization: Bearer <session-secret>`. The container URL can end in `/`. Complete the upload within 60 seconds of application readiness.
4. POST `/batch` once using the same secret and the JSON below. An identical same-run submission does not add another image event. If the response is lost, inspect the existing run and its receipt instead of creating a new order.
5. After the run completes, use the Output `delivery` link for the receipt and `archive` link for `RESULTS.zip`. With the API, use your Apify token to access this run's restricted key-value store. Verify the ZIP against the receipt's SHA-256.

Actor input:

```json
{
  "access_secret_sha256": "<SHA256 of your fresh locally generated secret>",
  "authorized_to_process": true,
  "accept_exif_only_scope": true,
  "accept_private_zip_retention": true
}
```

Upload body (include 10–20 compatible unique JPEGs):

```json
{
  "images": [{"id": "product-001", "image_base64": "<base64 JPEG bytes>"}],
  "authorized_to_process": true,
  "accept_exif_only_scope": true
}
```

The compact example shows one item only; a real batch must meet the minimum above. Output contains the JPEGs and a manifest with result status, duplicate/rejection decisions, input/output hashes and byte-preservation evidence. A dataset export does not contain your images.

### Privacy and retention

Original uploads are handled in application memory. The cleaned ZIP and receipt persist in the run's private Apify key-value store after execution, according to the storage owner's effective Apify retention rules or an authorized manual deletion. There is **no custom automatic-deletion deadline** and no guaranteed fixed availability period. Download your own copy. Named stores can remain indefinitely; the service does not name the default store. See [Apify retention rules](https://docs.apify.com/storage#data-retention).

Direct storage API access requires authorization. Apify can add signatures to Output links: anyone holding such a link can access its target without another authentication header. Keep these links secret; do not publish or log them. No fixed expiry for those platform-generated links is promised.

### Errors and pilot support

Files that cannot be processed are explicitly rejected; manual retouching is not included. A failed or uncertain charge is not retried automatically. Preserve the run ID and contact the developer through this Actor's Apify issue/support channel; do not attach private images, API tokens or signed URLs. Pilot usage is subject to withdrawal or suspension on delivery, billing or confidentiality anomalies.

# Actor input Schema

## `access_secret_sha256` (type: `string`):

Generate 32 random bytes locally as a URL-safe secret. Send only its SHA256 here; retain the secret for the Authorization header. Never upload images in Actor INPUT.

## `authorized_to_process` (type: `boolean`):

Required confirmation of permission to modify metadata.

## `accept_exif_only_scope` (type: `boolean`):

Remove EXIF GPS, capture dates and device fields. Preserve orientation, ICC and all non-EXIF segments; reject detected EXIF rights/color and APP11 provenance. No universal anonymization. The private output ZIP persists after the temporary upload session ends, subject to Apify retention and authorized deletion.

## `accept_private_zip_retention` (type: `boolean`):

The cleaned ZIP and its receipt are stored privately in this run's Apify key-value store after execution. Retention depends on the account plan, configured limits and storage naming, unless an authorized owner deletes the files. No fixed automatic deletion deadline is promised. Download your own copy. See https://docs.apify.com/storage#data-retention.

## Actor input object example

```json
{
  "authorized_to_process": false,
  "accept_exif_only_scope": false,
  "accept_private_zip_retention": false
}
```

# Actor output Schema

## `delivery` (type: `string`):

Private receipt. Apify may generate a signed Output link that grants access to its holder; keep it secret. Files follow effective account retention rules or an authorized manual deletion. No custom expiry or automatic cleanup is promised.

## `archive` (type: `string`):

Private run ZIP. Direct API access requires authorization, but an Apify-generated signed Output link grants access to its holder. Do not share or log that link. Available while retained by Apify and not deleted. Download your own copy; no fixed availability period is promised.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("adaptive_lollipop_mlu/jpeg-evidence-vault").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("adaptive_lollipop_mlu/jpeg-evidence-vault").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 '{}' |
apify call adaptive_lollipop_mlu/jpeg-evidence-vault --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,adaptive_lollipop_mlu/jpeg-evidence-vault"
        }
    }
}
```

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/UOjlopK5QMtcmyqLv/builds/T9jTqqHbSBFsQJusV/openapi.json
