画像フォーマットを変換する n8n アクション
PDF4me 画像フォーマットを変換する 画像をさまざまなファイル形式間で変換します n8n 自動化ワークフロー。画像を処理 n8n トリガー、バイナリデータ、base64文字列、または公開 URL変換する s JPG、 PNGGIF、BMP、WEBP、 TIFF 画質を維持しながら、インテリジェントなカラースペース処理、透明度サポート、フォーマット固有の最適化を実現するフォーマットを提供します。このソリューションは、ウェブ最適化、フォーマット標準化、互換性要件、ソーシャルメディア準備、印刷ワークフロー、そして画質を維持しながらシームレスな統合を実現する信頼性の高い画像変換を必要とする自動フォーマット変換に最適です。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
設定
追加する PDF4me 「画像フォーマット変換」ノードを n8n ワークフローを実行し、必要なパラメータを設定します。初期設定手順については、こちらをご覧ください。 n8n 統合ガイド。
前提条件:
- PDF4me API 資格
- n8n ワークフローへのアクセス
構成:
- 追加 PDF4me ノードからワークフローへ
- 「画像フォーマット変換」アクションを選択します。
- 入力パラメータを設定します(下記参照)。

パラメータ
画像フォーマット変換アクションのパラメータ一覧です。これらのパラメータを設定することで、画像フォーマット変換を制御できます。
重要: アスタリスク(***)が付いているパラメータは必須であり、アクションが正しく機能するためには必ず指定する必要があります。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Input Image Data Type | Required | Choose how to provide the image file to convert. Options: Binary Data, Base64 String, URL. Default is `Binary Data`. | Binary Data |
| 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 |
| Base64 Image Content | Conditional | Base64 encoded image content. Shown when Input Image Data Type is Base64 String. | iVBORw0KGgoAAAANSUhEUgAA... |
| Image URL | Conditional | URL to the image file. Shown when Input Image Data Type is URL. | https://abc.com/demo.jpg |
| Output File Name | Optional | Name for the output converted image file. Default is `converted_image.png`. | converted_image.png |
| Current Image Format | Optional | Current format of the input image. Options: BMP, GIF, JPG, PNG, TIFF. Default is `JPG`. | JPG |
| New Image Format | Optional | Format to convert the image to. Options: BMP, GIF, JPG, PNG, TIFF. Default is `PNG`. | PNG |
| 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 format converted successfully`. |
fileName | String | File name of the resulting file. |
mimeType | String | MIME type of the new image format, for example `image/png`. |
fileSize | Number | Size of the resulting file in bytes. |
currentImageFormat | String | Current Image Format that was sent. |
newImageFormat | String | Image format the file was converted to. |
data | Binary | The converted image. |
N8N 行動対応
の PDF4me 画像フォーマットを変換する API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。
- JSON
- Table
- Schema
- Binary
JSON 回答形式
生 JSON からの応答 API:
[
{
"success": true,
"message": "Image format converted successfully",
"fileName": "converted_image.webp",
"mimeType": "image/png",
"fileSize": 125430,
"originalFileSize": 245760,
"originalFormat": "JPG",
"convertedFormat": "PNG"
}
]
テーブルビュー
構造化された表形式の応答データ:
| パラメータ | 価値 |
|---|---|
| success | true |
| message | Image format converted successfully |
| fileName | converted_image.png |
| mimeType | image/png |
| fileSize | 125430 |
| originalFileSize | 245760 |
| originalFormat | JPG |
| convertedFormat | PNG |
スキーマビュー
レスポンスのデータ構造と型:
1 item
success: ☑ true
message: AB Image format converted successfully
fileName: AB converted_image.png
mimeType: AB image/png
fileSize: # 125430
originalFileSize: # 245760
originalFormat: AB JPG
convertedFormat: AB PNG
タイプ指標:
AB= String#= 番号☑= Boolean
バイナリデータビュー
実際に変換された画像ファイルのデータとメタデータ:
data
─────────────────────────────
File Name: converted_image.png
File Extension: png
Mime Type: image/png
File Size: 122.5 KB
バイナリデータアクセス:
- n8n バイナリオブジェクト:
$binary.data.data - Base64 コンテンツ直接使用可能
- ファイル操作ダウンロード、メール送信、または保存の準備ができました
ユースケース
ウェブ最適化と互換性
- 画像を最新のブラウザ向けに最適化されたWEBPなどの形式に変換する
- 互換性を向上させるため、従来のフォーマットを標準的なウェブフォーマットに変換する
- さまざまなデバイスや画面解像度に合わせて画像を最適化します。
コンテンツ管理とアーカイブ
- コンテンツ管理システム間で画像フォーマットを標準化する
- 画像をアーカイブ形式に変換する TIFF 長期保存用
- さまざまな公開プラットフォームと要件に合わせて画像を変換します。
Eコマースとマーケティング
- 商品画像をオンラインストアに最適な形式に変換します。
- さまざまなソーシャルメディアプラットフォーム向けにマーケティング資料を変換する
- メールキャンペーンやデジタル広告向けに画像を最適化します。