Skip to tool
ecech.
🖼️ Image & Photo Tools

Map a Local Image between Two Custom Colors with Live Preview

Transform luminance into a two-color gradient entirely in the browser.

Reviewable output

Processed

Warnings / conflicts

Output state

Up to 1 PNG, JPEG or WebP files, 10 MB each and 40 megapixels total. Files stay in this browser tab.

Advertisement

How the calculation works

Local inputboundedPer-item ruledeterministicArtifactcopy / download

How to Use This Tool

Transform luminance into a two-color gradient entirely in the browser. Apply a two-color duotone map to a local PNG, JPEG or WebP, preview the real pixels, validate color inputs, and download the result privately.

The work this page finishes

A CSS filter cannot reliably produce an exact two-endpoint raster asset, while uploading brand imagery to an unknown service may be unacceptable. For Duotone Image Maker, keeping source order beside the computed artifact lets a user repair only the failed entries and reproduce the same batch later.

Rows or choicesValidate every itemReview and export
A black pixel maps to the shadow endpoint, a white pixel maps to the highlight endpoint and intermediate luminance blends deterministically.

Deterministic workflow

Compute sRGB luminance as 0.2126R + 0.7152G + 0.0722B for every decoded pixel, then linearly interpolate each output channel between the entered shadow and highlight colors. For Duotone Image Maker, a run is capped at 5,000 items and 2 MB, preventing an accidental oversized paste while preserving successful rows when another row fails.

Why a dedicated interface helps

Use the preview to tune endpoints, then download a new PNG; compare brand colors in the final publishing color workflow rather than trusting one display. For Duotone Image Maker, a purpose-built form exposes every assumption and returns the same ordered structure on every run, which is more practical than reconciling shifting conversational output.

Assumptions

  • The source image can be decoded by the browser.
  • Alpha is preserved.
  • The entered endpoints use six-digit CSS hexadecimal syntax.

For Duotone Image Maker, keep an untouched copy for comparison after import; the browser performs the work locally, but local software and extensions are not controlled by this page.

Limitations and review boundary

The browser canvas operates on decoded sRGB-like pixels and discards source metadata; the export is PNG and is not a color-managed print proof. For Duotone Image Maker, the implementation neither follows user-entered links nor evaluates their contents, and it displays material as plain text rather than active HTML.

Verification and provenance

Fixtures derived from the displayed rule and MDN — Canvas API were reviewed on 2026-08-26; they include normal, empty or invalid, and partial-failure behavior. A black pixel maps to the shadow endpoint, a white pixel maps to the highlight endpoint and intermediate luminance blends deterministically.

Sources & assumptions

Tool Spec v2 · verified 2026-08-26. Platform rules and fees can change; the editable inputs remain authoritative for your account.

Official references

Model assumptions

  • The source image can be decoded by the browser.
  • Alpha is preserved.
  • The entered endpoints use six-digit CSS hexadecimal syntax.
  • The browser canvas operates on decoded sRGB-like pixels and discards source metadata; the export is PNG and is not a color-managed print proof.
Advertisement

Frequently Asked Questions

What does Duotone Image Maker complete?
It applies the stated generator rule to duotone image maker inputs and produces the reviewable output shown above.
Why use a dedicated Duotone Image Maker page instead of chat?
The Duotone Image Maker workflow preserves ordering, applies identical validation on every run and creates an artifact without conversational drift.
Does Duotone Image Maker send the input to ecech?
No. Duotone Image Maker reads pasted or selected content inside the current browser tab and does not call an ecech calculation API.
What verifies the default result?
A black pixel maps to the shadow endpoint, a white pixel maps to the highlight endpoint and intermediate luminance blends deterministically.
When should I reject the output?
The browser canvas operates on decoded sRGB-like pixels and discards source metadata; the export is PNG and is not a color-managed print proof.
Which reference supports Duotone Image Maker?
The recorded Duotone Image Maker reference is MDN — Canvas API, reviewed 2026-08-26.

Related tools in Image & Photo Tools

Browse all Image & Photo Tools tools
The Mac mini the ecech. site is built on, beside a handwritten note reading ecech.com.

Made by one person

ecech. is not a content farm. Every tool here is written and checked by hand, one at a time, by someone who wanted the tool to exist and could not find a version that showed its working.

No accounts and no sign-in, and nothing you type reaches a server — every calculation on this page runs inside your browser. The ads are served by Google and do set their own cookies, which is set out in full on the privacy page. More about the site.