メインコンテンツへスキップ

画像を反転 n8n

このノードの機能

PDF4me - 画像を反転 画像を水平方向、垂直方向、または両方向にミラーリングし、結果をバイナリデータとして返します。 n8n ワークフロー。前のノードからバイナリデータとしてソース画像を提供し、 Base64エンコードされた文字列、または公開 URL反転された出力は、クラウドストレージ、メール、データベース、またはさらなる画像処理ステップにすぐに転送できます。手動編集や外部ツールは不要です。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 資格. お客様の情報を保持する資格情報を作成または選択します PDF4me API ノードが画像処理要求を安全に認証できるようにするためのキー。

見逃してはならない重要な事実​

入力タイプは3種類あり、一度に1種類のみ必要です。
入力データタイプをバイナリデータに設定し、入力バイナリフィールドに入力するか、 Base64 ストリングとフィル Base64 画像コンテンツ、または URL そして画像を埋める URL選択した型に一致するフィールドのみに値を入力してください。エラーを避けるため、他の2つのグループは空欄のままにしてください。
水平方向と垂直方向の両方の反転を1つのコールに組み合わせます
方向タイプとして「水平」と「垂直」を選択すると、画像が両方向に同時に反転されます。これは180度回転と同じ結果になります。反転処理を2回連続して行うのではなく、左右反転と上下反転の両方が起こっている画像を修正する必要がある場合に、この方法を使用してください。
出力ファイル名はバイナリファイル名を設定します。適切な拡張子を使用してください。
指定した出力ファイル名は、返されるバイナリファイルの名前になります(拡張子を含む)。 JPEG 出力に名前を付ける 結果.png下流ノードでは、 MIME 型の不一致です。ストレージまたはメールノードへのスムーズな引き渡しのため、拡張子を実際の画像フォーマットに一致させてください。
n8n PDF4me Flip Imageノードでは、入力データタイプがバイナリデータに設定され、入力バイナリフィールドは前のノードのバイナリ出力を参照し、出力ファイル名はflipped_image.jpgに設定され、方向タイプは水平に設定され、非同期はfalseに設定され、バイナリデータ出力名はdataに設定されています。

ワークフローを実行する前に、入力データタイプを設定し、画像ソースをマッピングし、正しい拡張子で出力ファイル名を設定し、方向タイプを選択してください。

パラメータ​

必須: 入力データタイプ、そのタイプに一致する画像フィールド(入力バイナリフィールド、 Base64 画像コンテンツ、または画像 URL出力ファイル名、方向タイプ、バイナリデータ出力名。 Async 任意です。

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the image file to flip. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the image file. Shown when Input Data Type is Binary Data. Default is `data`.data
Base64 Image ContentConditionalBase64 encoded image content. Shown when Input Data Type is Base64 String./9j/4AAQSkZJRgA...
Image URLConditionalURL to the image file to flip. Shown when Input Data Type is URL.https://example.com/photo.jpg
Output File NameOptionalName for the output flipped image file. Default is `flipped_image.jpg`.flipped_image.jpg
Orientation TypeRequiredOrientation to flip the image. Options: Horizontal, Vertical, Horizontal and Vertical. Default is `Vertical`.Vertical
AsyncOptionalNot used: the node always sends the request to PDF4me as asynchronous (IsAsync true), whatever this is set to. Default is `Yes`.Yes
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

出力​

ノードが返すフィールド。

分野タイプ内容物
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Image flipped successfully`.
fileNameStringFile name of the resulting file.
mimeTypeStringAlways `image/jpeg`, whatever the format of the input image.
fileSizeNumberSize of the resulting file in bytes.
orientationTypeStringOrientation Type that was used.
dataBinaryThe flipped image.

クイックセットアップ​

  1. 追加する PDF4me あなたのノードへ n8n ワークフローを選択して選択する 画像を反転 行動として。
  2. 選択または作成する 資格 あなたの PDF4me API 鍵。
  3. セット 入力データタイプ 一致するフィールド - バイナリデータを入力します。 Base64 画像コンテンツ、または画像 URL。
  4. 入力 出力ファイル名 正しい拡張子で。
  5. 選ぶ 方向タイプ 水平方向、垂直方向、または水平方向と垂直方向の両方。
  6. セット バイナリデータ出力名 (デフォルト: data)そしてクリック Node.jsを実行する反転された画像は出力バイナリに含まれています。

ワークフローの例​

ワークフローの例Common n8n workflow patterns using Flip Image.
カタログエクスポート用に製品画像をミラーリングする
  1. 1 HTTP リクエストノードが製品画像を取得します URLPIMシステムからのs API。
  2. Split In Batchesノードは各画像を処理します URL 個々に。
  3. フリップイメージは入力データタイプを次のように設定して実行されます。 URL、方向タイプを水平に設定し、各製品写真の左右反転を作成します。
  4. Googleドライブは、反転させた各画像を、製品SKUで命名された「ミラーリングされたアセット」フォルダにアップロードします。
上下逆さまにスキャンされた画像を自動的に修正します
  1. Dropboxの監視フォルダは、スキャンされた画像が受信フォルダに到着したときに作動します。
  2. Flip Imageは、スキャナーからの上下逆の向きを補正するために、方向タイプを「垂直」に設定して実行されます。
  3. 修正された画像は「処理済みスキャン」フォルダにアップロードされます。
  4. Slackの通知で、修正済みの画像がドキュメントチームに提供できる状態になったことが確認されます。
ソーシャルコンテンツ用のビフォー/アフター画像ペアを生成する
  1. Airtableは、コンテンツカレンダーベースに新しい画像レコードが追加されたときにトリガーされます。
  2. HTTP リクエストは、Airtable添付ファイルから元の画像をダウンロードします。 URL。
  3. 画像反転機能は、並べて比較する投稿の「後」フレーム用に、水平方向に反転した画像を作成します。
  4. 両方の画像はS3にアップロードされ、Airtableレコードはミラーリングされたアセットで更新されます。 URL。

よくある質問​

What image formats does this node support?+
JPEG, PNG, GIF, and BMP. All four formats can be supplied via binary data from a prior n8n node, as a Base64-encoded string, or as a public URL. The output is returned in the same format you supplied. Make sure the Output File Name extension matches the actual image format to prevent MIME type issues in downstream nodes like email or cloud storage uploads.
What is the practical difference between the three orientation types?+
Horizontal flips the image left-to-right, creating a mirror image - useful for product shots, logos, or social media creative that need a reflected version. Vertical flips top-to-bottom - useful for correcting images that arrived inverted from a scanner or camera orientation. Horizontal and Vertical applies both at once, producing the same result as a 180-degree rotation, which is useful for correcting content that is both mirrored and upside-down.
How do I reference the image from a previous n8n node?+
Set Input Data Type to Binary Data, then in the Input Binary Field, use the n8n expression {{$binary.data}} to reference the binary output of the prior node. If the prior node outputs the image under a different property name - for example "image" instead of "data" - update the expression to {{$binary.image}} to match.
What does Binary Data Output Name control and what should I set it to?+
This field sets the key name under which the flipped image binary is stored in the n8n output item. Any downstream node that needs the flipped image references it by this name. The default value is "data" which works in most workflows. If you are processing multiple images in parallel branches and need to distinguish them, give each a unique name to avoid overwriting.
Can I use this node with the Async flag enabled for large images?+
Yes. Setting Async to true tells the PDF4me API to process the flip in the background and return the job ID immediately instead of waiting for the image. This is useful in high-volume or batch workflows where you do not want the n8n node to time out on a large file. The trade-off is that you need to poll for the result or handle the callback rather than using the output directly in the same execution path.

関連ノード​

ヘルプが必要な場合​