Automated JPG/PNG to WebP Image Conversion Workflow

somdn_product_page

This n8n workflow automates the process of converting images from JPG or PNG formats to WebP, streamlining image optimization for websites. It begins with a manual trigger and retrieves image URLs from a Google Sheet that has been pre-filled with image links. Using a custom JavaScript node, the workflow extracts filenames and extensions from URLs. It then uses conditional logic to determine whether an image is a JPG or PNG and sends the URL to the appropriate image conversion API (APYHub) via HTTP requests. Once converted, the workflow retrieves the WebP image and uploads it to a specified folder in Google Drive. The Google Sheet is updated to mark the task as complete and to record the new image URL. This workflow is ideal for website owners or developers seeking to automate image optimization, reduce page load times, and maintain organized media storage.

Node Count

11 – 20 Nodes

Nodes Used

code, googleDrive, googleSheets, httpRequest, manualTrigger, set, stickyNote, switch

Reviews

There are no reviews yet.

Be the first to review “Automated JPG/PNG to WebP Image Conversion Workflow”

Your email address will not be published. Required fields are marked *