JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q83494F
  • License MIT

n8n Community Node für ImageMagick - Konvertiert Binary Properties (Lieferscheine) zu PNG

Package Exports

  • n8n-nodes-imagemagick
  • n8n-nodes-imagemagick/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n8n-nodes-imagemagick) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

n8n-nodes-imagemagick

Ein n8n Community Node für Bildkonvertierung mit ImageMagick CLI, speziell entwickelt für die Konvertierung von Binary Properties (Lieferscheine) zu PNG-Format.

Features

  • Binary zu PNG Konvertierung: Konvertiert beliebige Binary Properties zu PNG-Format
  • Qualitätskontrolle: Einstellbare PNG-Qualität (1-100)
  • Größenanpassung: Optionale Breiten- und Höhenanpassung
  • Automatische Dateinamen: Generiert passende .png Dateinamen
  • Fehlerbehandlung: Robuste Fehlerbehandlung mit Continue-on-Fail Support
  • ImageMagick CLI: Verwendet ImageMagick über Command Line Interface
  • Container-freundlich: Funktioniert zuverlässig in Docker/Alpine-Containern

Installation

Voraussetzungen

  • Node.js 18+
  • n8n 0.200.0+
  • ImageMagick muss im System installiert sein

ImageMagick Installation

Docker/Alpine (Empfohlen für Container)

RUN apk add --no-cache imagemagick

Ubuntu/Debian

sudo apt-get update
sudo apt-get install imagemagick

macOS

brew install imagemagick

Windows

Laden Sie ImageMagick von https://imagemagick.org/script/download.php#windows herunter und installieren Sie es.

Node Installation

Option 1: npm installieren (Empfohlen)

# In n8n Custom Nodes Verzeichnis
npm install n8n-nodes-imagemagick@1.0.5

Option 2: Manuell installieren

  1. Navigieren Sie zu Ihrem n8n Custom Nodes Verzeichnis:
cd ~/.n8n/custom
  1. Klonen Sie das Repository:
git clone https://github.com/ochs-bauunternehmung/n8n-nodes-imagemagick.git
  1. Installieren Sie die Dependencies:
cd n8n-nodes-imagemagick
npm install
  1. Bauen Sie das Node:
npm run build
  1. Starten Sie n8n neu

Verwendung

Node-Konfiguration

  1. Operation: Wählen Sie "Convert to PNG"
  2. Input Binary Property: Name der Binary Property die konvertiert werden soll (Standard: "data")
  3. Output Binary Property: Name der Output Binary Property (Standard: "data")
  4. Quality: PNG-Qualität von 1-100 (Standard: 90)
  5. Width: Zielbreite in Pixeln (0 = automatisch)
  6. Height: Zielhöhe in Pixeln (0 = automatisch)

Beispiel-Workflow

{
  "nodes": [
    {
      "parameters": {
        "operation": "convertToPng",
        "binaryPropertyName": "data",
        "outputBinaryPropertyName": "pngData",
        "quality": 95,
        "width": 800,
        "height": 600
      },
      "name": "ImageMagick",
      "type": "n8n-nodes-imagemagick.imageMagick",
      "typeVersion": 1,
      "position": [400, 300]
    }
  ]
}

Input/Output

Input:

  • Binary Property mit beliebigem Bildformat (JPEG, PDF, TIFF, etc.)

Output:

  • Konvertierte PNG-Datei als Binary Property
  • Metadaten über die Konvertierung im JSON-Output

Entwicklung

Setup

npm install

Build

npm run build

Linting

npm run lint

Formatting

npm run format

Lizenz

MIT License - siehe LICENSE für Details.

Support

Bei Fragen oder Problemen erstellen Sie bitte ein Issue im GitHub Repository.

Changelog

1.0.0

  • Initiale Version
  • Binary zu PNG Konvertierung
  • Qualitäts- und Größenanpassung
  • Fehlerbehandlung