Effortless Image Conversion: JPG/PNG to WebP
detail.loadingPreview
Automate the conversion of JPG and PNG images to the highly efficient WebP format. This workflow seamlessly pulls image URLs from Google Sheets, converts them using an API, and updates your sheet with the new WebP URLs.
About This Workflow
This n8n workflow is designed to streamline your image optimization process. It intelligently fetches image URLs from a specified Google Sheet, determines if they are JPG or PNG, and then leverages a powerful API to convert them into the WebP format. WebP offers superior compression compared to traditional formats, resulting in smaller file sizes and faster loading times for your websites and applications. The workflow also includes steps to extract filenames and extensions, ensuring clean data handling. Finally, it updates your Google Sheet with the newly generated WebP image URLs and marks the task as complete.
Key Features
- Automated image conversion from JPG/PNG to WebP.
- Seamless integration with Google Sheets for data input and output.
- Intelligent file extension detection to handle different image types.
- Utilizes a robust API for reliable image format transformation.
- Provides a complete automation solution for image optimization.
How To Use
- Set API Key: Input your API key for the image conversion service in the 'Set API KEY' node.
- Get Images: Configure the 'Get images' node to connect to your Google Sheet. Specify the Document ID and Sheet Name containing the image URLs in a column named 'FROM'. Ensure a 'DONE' column exists to track processed images.
- Get Extension: This node automatically processes the input and extracts the filename and extension from the image URLs.
- JPG or PNG?: This 'Switch' node routes the workflow based on the detected image extension. It will direct JPGs and JPEGs to one path and PNGs to another.
- From JPG to WEBP / PNG to WEBP: Configure these 'HTTP Request' nodes with the correct API endpoint for converting JPG/PNG to WebP. Ensure the 'url' parameter correctly references the image URL from the previous step and that the API token is correctly passed in the headers.
- Update Sheet: Configure the 'Update Sheet' node to write the converted WebP image URL to the 'TO' column and mark the row as 'DONE' in your Google Sheet. Ensure the 'row_number' is correctly passed from the 'Get images' node.
Apps Used
Workflow JSON
{
"id": "17e3af0c-d557-48ca-8d78-22e95a652dff",
"name": "Effortless Image Conversion: JPG/PNG to WebP",
"nodes": 13,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 17e3af0c-d557...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.