Zum Inhalt
HALOWERK

Medienwerk

image dupe

Takes between two and eight images by URL or inline base64 and compares each pair. Three perceptual hashes are computed, because each fails differently: an average hash over an 8x8 grey image is cheap but moves with brightness, a gradient hash reads the slope between neighbouring pixels and survives exposure changes, and a DCT hash over the low frequencies of a 32x32 grey image is the sturdiest against rescaling and re-encoding.

POST https://medien.halowerk.com/v1/image-dupe

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
imagesarrayJaTwo to eight images. Each takes either url or content_base64.
check_rotationsbooleanNeinAlso compare against the other image rotated 90, 180 and 270 degrees.
check_mirrorbooleanNeinAlso compare against the mirrored image.
phash_thresholdintegerNeinOverride the pHash distance below which a pair counts as likely edited. Default 10.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "images"
  ],
  "additionalProperties": false,
  "properties": {
    "images": {
      "type": "array",
      "minItems": 2,
      "maxItems": 8,
      "description": "Two to eight images. Each takes either url or content_base64.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "Public http(s) URL of the image."
          },
          "content_base64": {
            "type": "string",
            "maxLength": 12000000,
            "description": "The image inline, base64."
          },
          "label": {
            "type": "string",
            "maxLength": 120,
            "description": "Name used in the answer. Defaults to image_1, image_2 …"
          },
          "filename": {
            "type": "string",
            "maxLength": 260
          }
        }
      }
    },
    "check_rotations": {
      "type": "boolean",
      "default": false,
      "description": "Also compare against the other image rotated 90, 180 and 270 degrees."
    },
    "check_mirror": {
      "type": "boolean",
      "default": false,
      "description": "Also compare against the mirrored image."
    },
    "phash_threshold": {
      "type": "integer",
      "minimum": 0,
      "maximum": 32,
      "description": "Override the pHash distance below which a pair counts as likely edited. Default 10."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "images": [
    {
      "url": "https://example.com/a.jpg",
      "label": "original"
    },
    {
      "url": "https://example.com/b.jpg",
      "label": "verdaechtig"
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →