画像に透かしを追加するには、 n8n アクション
PDF4me 画像に透かしを入れる 画像にカスタム透かしを追加する n8n 自動化ワークフロー。画像を処理 n8n トリガー、バイナリデータ、base64文字列、または公開 URLs 透かし画像(ロゴ、スタンプ、署名など)を、位置(角、中央、斜め、カスタム座標)、透明度、サイズ、オフセット調整などをカスタマイズして重ね合わせることができます。このソリューションは、画像ブランディング、著作権保護、ロゴ重ね合わせ、セキュリティ透かし、バッチ画像処理、柔軟な位置調整とシームレスな統合によるプロフェッショナルな画像合成を必要とする自動透かしワークフローに最適です。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
設定
追加する PDF4me 「画像に透かしを追加」ノードを n8n ワークフローを実行し、必要なパラメータを設定します。初期設定手順については、こちらをご覧ください。 n8n 統合ガイド。
前提条件:
- PDF4me API 資格
- n8n ワークフローへのアクセス
構成:
- 追加 PDF4me ノードからワークフローへ
- 「画像に透かしを追加」アクションを選択します。
- 入力パラメータを設定します(下記参照)。

パラメータ
画像に透かしを追加するアクションのパラメータ一覧です。これらのパラメータを設定することで、透かしの適用方法を制御できます。
重要: アスタリスク(***)が付いているパラメータは必須であり、アクションが正しく機能するためには必ず指定する必要があります。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Input Image Data Type | Required | Choose how to provide the image file to watermark. Options: Base64 String, Binary Data, URL. Default is `Binary Data`. | Binary Data |
| Base64 Image Content | Conditional | Base64 encoded image content. Shown when Input Image Data Type is Base64 String. | iVBORw0KGgoAAAANSUhEUgAA... |
| Input Binary Field | Conditional | Name of the binary property that contains the image file. Shown when Input Image Data Type is Binary Data. Default is `data`. | data |
| Image URL | Conditional | URL to the image file. Shown when Input Image Data Type is URL. | https://abc.com/sam.jpg |
| Watermark Image Data Type | Required | Choose how to provide the watermark image. Options: Base64 String, Binary Data, URL. Default is `Binary Data`. | Binary Data |
| Base64 Watermark Content | Conditional | Base64 encoded watermark image content. Shown when Watermark Image Data Type is Base64 String. | /9j/4AAQSkZJR... |
| Watermark Binary Field | Conditional | Name of the binary property that contains the watermark image. Shown when Watermark Image Data Type is Binary Data. Default is `data`. | data |
| Watermark Image URL | Conditional | URL to the watermark image file. Shown when Watermark Image Data Type is URL. | https://abc.com/sam.jpg |
| Output File Name | Optional | Name for the output image file with watermark. Default is `image_with_watermark.jpg`. | image_with_watermark.jpg |
| Position | Optional | Position of the watermark on the image. Options: Bottom Left, Bottom Right, Central Horizontal, Central Vertical, Custom, Diagonal, Top Left, Top Right. Default is `Top Right`. | Top Right |
| Position X | Conditional | X position for custom positioning (float). Shown when Position is Custom. Default is `0`. | 0 |
| Position Y | Conditional | Y position for custom positioning (float). Shown when Position is Custom. Default is `0`. | 0 |
| Opacity | Optional | Watermark opacity (0.0 to 1.0). Default is `1`. | 1 |
| Horizontal Offset | Optional | Horizontal offset for positioning (integer). Default is `0`. | 0 |
| Vertical Offset | Optional | Vertical offset for positioning (integer). Default is `0`. | 0 |
| Rotation | Optional | Rotation angle for watermark (float). Default is `0`. | 0 |
| Binary Data Output Name | Optional | Custom name for the binary data in n8n output. Default is `data`. | data |
出力
出力パラメータ
| 分野 | タイプ | 内容物 |
|---|---|---|
success | Boolean | True when the operation succeeded. |
message | String | Status message, `Image with watermark created successfully`. |
fileName | String | File name of the resulting file. |
mimeType | String | Always `image/jpeg`, whatever the format of the input image. |
fileSize | Number | Size of the resulting file in bytes. |
position | String | Watermark Position that was used. |
opacity | String | Watermark Opacity that was used. |
data | Binary | The image with the watermark. |
N8Nアクションレスポンス
の PDF4me 画像に透かしを入れる API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。
- JSON
- Table
- Schema
- Binary
JSON 回答形式
生 JSON からの応答 API:
[
{
"success": true,
"message": "Image watermark added successfully",
"fileName": "image_with_watermark.jpg",
"mimeType": "image/jpeg",
"fileSize": 245760
}
]
テーブルビュー
構造化された表形式の応答データ:
| パラメータ | 価値 |
|---|---|
| 成功 | true |
| メッセージ | Image watermark added successfully |
| ファイル名 | image_with_watermark.jpg |
| mimeタイプ | image/jpeg |
| ファイルサイズ | 245760 |
スキーマビュー
レスポンスのデータ構造と型:
1 item
success: ☑ true
message: AB Image watermark added successfully
fileName: AB image_with_watermark.jpg
mimeType: AB image/jpeg
fileSize: # 245760
タイプ指標:
AB= 文字列#= 番号☑= ブール値
バイナリデータビュー
透かしが入った実際の画像ファイルのデータとメタデータ:
data
─────────────────────────────
File Name: image_with_watermark.jpg
File Extension: jpg
Mime Type: image/jpeg
File Size: 240.0 KB
バイナリデータアクセス:
- n8n バイナリオブジェクト:
$binary.data.data - Base64 コンテンツ直接使用可能
- ファイル操作ダウンロード、メール送信、または保存の準備ができました
ユースケース
プロフェッショナルなイメージブランディング
- ブランドの一貫性を保つため、商品画像に企業ロゴと透かしを追加する
- 一貫した透かし配置でブランド化されたソーシャルメディアコンテンツを作成する
- デジタル写真やアート作品の著作権保護を実施する
自動コンテンツ処理
- 大規模画像コレクションに対するバッチ透かし処理
- コンテンツ管理ワークフローに透かし機能を統合する
- eコマースおよびマーケティング資料用の画像準備を自動化する
企業イメージ管理
- 複数の部門間でイメージブランディングを標準化する
- 文書および画像ワークフローに自動透かし機能を実装する
- すべてのデジタル資産で一貫したビジュアルアイデンティティを作成する