π Convert image files (JPG, PNG) to URLs and reduce file size for FREE
β‘ 19,997 views Β· π File Management
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
Use Case
Transform and optimize images for web use:
- You need to host local images online
- You want to reduce image file sizes automatically
- You need image URLs for web content
- You want to generate and optimize AI-created images
What this Workflow Does
The workflow processes images through two services:
- Uploads images to ImgBB for hosting and URL generation (free but need API key)
- Optimizes images using ReSmush.it to reduce file size (free)
- Optional: Creates images using OpenAIβs image generation
- Returns optimized image URLs ready for use
Setup
- Create an ImgBB account and get your API key
- Add your ImgBB API key to the HTTP Request node (key parameter)
- Optional: Configure OpenAI credentials for image generation
- Connect your image input source
How to Adjust it to Your Needs
- Skip OpenAI nodes if using your own image files
- Adjust image optimization parameters
- Customize image hosting settings
- Modify output format for your needs
More templates and n8n workflows >>> @simonscrapes
π Nodes Used
HTTP Request, OpenAI
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File