Package Exports
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 ImageMagick-Operationen, 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
Installation
Voraussetzungen
- Node.js 18+
- n8n 0.200.0+
- ImageMagick (systemweit installiert)
ImageMagick Installation
macOS
brew install imagemagick
Ubuntu/Debian
sudo apt-get update
sudo apt-get install imagemagick
Windows
Laden Sie ImageMagick von https://imagemagick.org/script/download.php#windows herunter und installieren Sie es.
Node Installation
- Navigieren Sie zu Ihrem n8n Custom Nodes Verzeichnis:
cd ~/.n8n/custom
- Klonen Sie das Repository:
git clone https://github.com/ochs-bauunternehmung/n8n-nodes-imagemagick.git
- Installieren Sie die Dependencies:
cd n8n-nodes-imagemagick
npm install
- Bauen Sie das Node:
npm run build
- Starten Sie n8n neu
Verwendung
Node-Konfiguration
- Operation: Wählen Sie "Convert to PNG"
- Input Binary Property: Name der Binary Property die konvertiert werden soll (Standard: "data")
- Output Binary Property: Name der Output Binary Property (Standard: "data")
- Quality: PNG-Qualität von 1-100 (Standard: 90)
- Width: Zielbreite in Pixeln (0 = automatisch)
- 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