Automate image SEO audits for Ghost blogs using this powerful n8n workflow. Extract alt text, check file size, and record audit results directly into Google Sheets.
Download this n8n workflow template and start using it instantly.
Maintaining optimal image performance—both in terms of file size and SEO attributes like alt text and filenames—is crucial for search engine rankings and user experience. Manually auditing every image across dozens or hundreds of blog posts is inefficient. This comprehensive n8n workflow automates the entire process.
This powerful n8n templates solution connects to your Ghost blog, extracts all embedded images and their existing alt text, and then performs two key audits: checking if the image file size is below a defined threshold (500 KB in this case) and verifying if the filename follows SEO best practices. All findings are meticulously logged into a Google Sheet, providing a central, actionable report. By leveraging this repeatable n8n node sequence, you ensure your content always meets technical SEO standards.
The entire process is initiated by the manual n8n trigger, making it easy to run on demand.
id, title, and content (HTML) for further processing.Split In Batches n8n node iterates over each article. Inside this loop, a Code n8n node uses JavaScript regex to parse the article's HTML, successfully collecting every imageurl and alttext present in the post.Split In Batches n8n node processes each collected image link individually.filesizekb. It then applies logical checks: confirming if the file size is under 500 KB (sizeok) and checking if the filename is SEO-friendly (filenameseo).Append or Update operation, matching on the imageurl to update the existing record with the audit results (filesizekb, format, sizeok, filename_seo). This completes the image audit within this efficient n8n workflow.To deploy this powerful n8n workflow, follow these steps:
This robust n8n workflow relies on a mix of application-specific and core nodes to achieve its goal.
When clicking ‘Test workflow’ (Manual Trigger n8n trigger):
Function: Initiates the n8n workflow execution manually.
Key Configuration: Standard manual activation.
Extract Blog Posts (Ghost n8n node):
Function: Connects to the Ghost Content API to pull blog posts, including all necessary content and metadata.
Key Configuration: Operation: getAll, Limit: 1 (needs adjustment for production).
Collect All Images (Code n8n node):
Function: Executes custom JavaScript using regex to scrape all tags from the article HTML, extracting the imageurl and alttext into structured JSON items.
Key Configuration: Custom JavaScript implementation for content parsing.
Add Records (Google Sheets n8n node):
Function: Appends the initial list of extracted image URLs and alt text to the designated Google Sheet.
Key Configuration: Operation: append, Mapping Mode: defineBelow (mapping articleId, imageurl, alttext).
Get Image (HTTP Request n8n node):
Function: Downloads the content of each image URL found in the second loop.
Key Configuration: Options: Response Format set to file to handle binary data.
Extract Image Info (Code n8n node):
Function: Analyzes the binary file data downloaded by the previous n8n node to calculate the file size in KB, extract the format, and run SEO checks (filename validity, size check against 500 KB limit).
Key Configuration: Custom JavaScript logic using the $binary object for file analysis.
Results Images (Google Sheets n8n node):
Function: Updates the existing Google Sheet records with the auditing results (size, format, SEO checks).
Key Configuration: Operation: appendOrUpdate, Matching Columns: image_url (ensures the correct row is updated based on the image link).
Loop Over Items (Split In Batches n8n node):
* Function: Used twice in this n8n workflow to efficiently process large batches of articles and then large batches of individual image items.
Use this powerful n8n workflow to automatically extract Ghost blog posts, clean the HTML, and generate high-quality, professional LinkedIn promotional content using the OpenAI GPT-4o model.

Use this powerful n8n workflow template to automatically parse flight confirmation emails, calculate associated CO2 emissions using the Carbon Interface API, and log all results in Google Sheets.

Deploy a powerful n8n workflow chatbot to analyze YouTube videos. Extract transcripts, fetch details, and generate structured summaries using an n8n agent and custom n8n node logic.

Automate content creation for WordPress using a powerful n8n workflow. Generate articles with AI, rewrite content for multiple reading levels (Grade 9, 5, 2), and auto-publish drafts with featured images.

Deploy this robust n8n workflow to automatically generate Meta Ads campaign performance reports, save performance data to Google Sheets, and distribute the reports via Email and WhatsApp. This powerful n8n template ensures timely delivery.

Automation, AI and Analytics for Supply Chain & Business Optimization Helping businesses streamline operations using n8n, AI agents, and data science to enhance efficiency and sustainability. Linkedin: www.linkedin.com/in/samir-saci







































