Skip to main content

Convert image files (JPG, PNG) to URLs and reduce file size for FREE

Workflow preview

Workflow preview
100%
Convert image files (JPG, PNG) to URLs and reduce file size for FREE preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 a...

Best for

  • File Management automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by simonscrapes.

Original n8n.io source

1.1 Workflow description

Title
Convert image files (JPG, PNG) to URLs and reduce file size for FREE
Workflow name
Convert image files (JPG, PNG) to URLs and reduce file size for FREE

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

  1. Create an ImgBB account and get your API key
  2. Add your ImgBB API key to the HTTP Request node (key parameter)
  3. Optional: Configure OpenAI credentials for image generation
  4. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Upload Img to ImgBB for URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - ReSmush.it Image Optimisation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Store Optimised Image ImgBB

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Sticky Note50

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note51

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note52

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note53

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note54

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Set image description

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Generate Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.4

Block 11 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

3. Summary Table

Workflow Convert image files (JPG, PNG) to URLs and reduce file size for FREE
Complexity intermediate
Nodes 11
Categories File Management, Multimodal AI
Author simonscrapes
Published 31 Oct 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2513/2513.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Convert image files (JPG, PNG) to URLs and reduce file size for FREE do?

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 a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management, Multimodal AI use case.