Lewati ke konten utama

Balik Gambar di n8n

Fungsi node ini

PDF4me - Balik Gambar Memantulkan gambar secara horizontal, vertikal, atau ke kedua arah dan mengembalikan hasilnya sebagai data biner di dalam n8n alur kerja. Berikan gambar sumber sebagai data biner dari node sebelumnya, sebuah Base64-string yang dikodekan, atau publik URLHasil pembalikan gambar langsung tersedia untuk diunggah ke penyimpanan cloud, email, basis data, atau langkah pemrosesan gambar selanjutnya - tanpa pengeditan manual, tanpa alat eksternal.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Memverifikasi Identitas Anda API Meminta

Setiap PDF4me simpul di n8n memerlukan validitas KredensialBuat atau pilih kredensial yang menyimpan informasi Anda. PDF4me API kunci agar node dapat mengautentikasi permintaan pemrosesan gambar dengan aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Tiga jenis input - hanya satu yang diperlukan pada satu waktu.
Atur Tipe Data Input ke Data Biner dan isi Kolom Input Biner, atau Base64 Tali dan isi Base64 Konten Gambar, atau URL dan isi Gambar URLHanya kolom yang sesuai dengan tipe yang Anda pilih yang perlu diisi - biarkan dua grup lainnya kosong untuk menghindari kesalahan.
Horizontal dan Vertikal menggabungkan kedua gerakan membalik dalam satu panggilan.
Memilih Horizontal dan Vertikal sebagai Tipe Orientasi akan membalik gambar ke kedua arah secara bersamaan - hasilnya setara dengan rotasi 180 derajat. Gunakan ini ketika Anda perlu mengoreksi gambar yang terbalik dan tercermin, daripada melakukan dua panggilan pembalikan terpisah.
Nama File Output menentukan nama file biner - gunakan ekstensi yang tepat.
Nama File Output yang Anda berikan adalah nama file biner yang akan dikembalikan - termasuk ekstensinya. Jika Anda memberikan JPEG dan beri nama outputnya hasil.png, node hilir mungkin melihat MIME Ketidaksesuaian tipe. Cocokkan ekstensi dengan format gambar sebenarnya untuk penyerahan yang bersih ke node penyimpanan atau email.
Node n8n PDF4me Flip Image menunjukkan Tipe Data Input diatur ke Data Biner, Bidang Biner Input merujuk ke output biner node sebelumnya, Nama File Output diatur ke flipped_image.jpg, Tipe Orientasi diatur ke Horizontal, Async diatur ke false, dan Nama Output Data Biner diatur ke data.

Atur Tipe Data Input, petakan sumber gambar, atur Nama File Output dengan ekstensi yang benar, dan pilih Tipe Orientasi sebelum menjalankan alur kerja.

Parameter

Diperlukan: Tipe Data Masukan, kolom gambar yang sesuai dengan tipe tersebut (Kolom Biner Masukan, Base64 Konten Gambar, atau Gambar URL), Nama File Output, Tipe Orientasi, dan Nama Output Data Biner. Async bersifat opsional.

ParameterDiperlukanApa fungsinya?Contoh
Input Data TypeYesFormat of the source image. Choose Binary Data to map from a prior node, Base64 String to supply encoded image data, or URL to point to a publicly accessible image file.Binary Data
Input Binary FieldYes (Binary Data)The binary property name from the prior node that holds the image. Use the n8n expression to reference it.{{$binary.data}}
Base64 Image ContentYes (Base64)Base64-encoded string of the image to flip. JPEG, PNG, GIF, and BMP all accepted./9j/4AAQSkZJRgA...
Image URLYes (URL)Publicly accessible URL to the source image. PDF4me downloads and flips the image from this address.https://example.com/photo.jpg
Output File NameYesFilename for the returned flipped image, including extension. Must match the actual image format to avoid MIME mismatches in downstream nodes.flipped_image.jpg
Orientation TypeYesDirection to flip the image. Horizontal mirrors left-to-right. Vertical mirrors top-to-bottom. Horizontal and Vertical applies both simultaneously.Horizontal
AsyncNoWhen true, the operation runs asynchronously and returns immediately without waiting for the result. Useful for large images in batch workflows.false
Binary Data Output NameYesKey name under which the flipped image binary is stored in the n8n output. Downstream nodes reference the image by this name.data

Pengaturan Cepat

  1. Tambahkan PDF4me simpul ke Anda n8n alur kerja dan pilih Balik Gambar sebagai tindakan tersebut.
  2. Pilih atau buat Kredensial dengan milikmu PDF4me API kunci.
  3. Mengatur Tipe Data Masukan dan isi kolom yang sesuai - Data Biner, Base64 Konten Gambar, atau Gambar URL.
  4. Memasuki Nama File Output dengan ekstensi yang tepat.
  5. Memilih Tipe Orientasi - Horizontal, Vertikal, atau Horizontal dan Vertikal.
  6. Mengatur Nama Keluaran Data Biner (bawaan: data) dan klik Eksekusi NodeGambar yang dibalik sudah siap dalam bentuk biner keluaran.

Contoh Alur Kerja

Contoh Alur KerjaCommon n8n workflow patterns using Flip Image.
Cerminkan gambar produk untuk ekspor katalog.
  1. Sebuah HTTP Node permintaan mengambil gambar produk URLdari sistem PIM API.
  2. Node Split In Batches memproses setiap gambar. URL secara individu.
  3. Flip Image berjalan dengan Tipe Data Input diatur ke URL, Tipe Orientasi diatur ke Horizontal, sehingga menciptakan cerminan kiri-kanan dari setiap foto produk.
  4. Google Drive mengunggah setiap gambar yang telah dibalik ke folder "Mirrored Assets" yang diberi nama berdasarkan SKU produk.
Koreksi gambar hasil pemindaian yang terbalik secara otomatis.
  1. Dropbox Watch Folder akan aktif ketika gambar yang dipindai tiba di folder penerimaan.
  2. Flip Image dijalankan dengan Tipe Orientasi diatur ke Vertikal untuk memperbaiki orientasi terbalik dari pemindai.
  3. Gambar yang telah dikoreksi diunggah ke folder "Pemindaian yang Diproses".
  4. Notifikasi Slack mengkonfirmasi bahwa gambar yang telah dikoreksi siap untuk tim dokumen.
Hasilkan pasangan gambar sebelum/sesudah untuk konten media sosial.
  1. Airtable akan aktif ketika data gambar baru ditambahkan ke basis kalender konten.
  2. HTTP Permintaan mengunduh gambar asli dari lampiran Airtable. URL.
  3. Flip Image membuat versi yang dicerminkan secara horizontal untuk bingkai "setelah" pada postingan perbandingan berdampingan.
  4. Kedua gambar diunggah ke S3 dan catatan Airtable diperbarui dengan aset yang dicerminkan. URL.

Pertanyaan yang Sering Diajukan

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.

Node Terkait

Dapatkan Bantuan