← All N8N workflows
AI & researchHTTP RequestNo OpOpen AiEdit Fields

Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size

Configured with HTTP Request, Open Ai. Review the connections and setup before adapting this template.

Workflow preview
Web / APIUpload Img to ImgBB forURLHTTP RequestWeb / APIReSmush.it ImageOptimisationHTTP RequestWeb / APIStore Optimised ImageImgBBHTTP RequestTransformSet image descriptionEdit FieldsAI & modelsGenerate ImageOpen AiRoutingNo Operation, donothingNo Op

Node categories in this workflow

  • Web / API
  • Transform
  • AI & models
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Upload Img to ImgBB for URLWeb / APIHTTP RequestPOST
ReSmush.it Image OptimisationWeb / APIHTTP RequestSee node parameters
Store Optimised Image ImgBBWeb / APIHTTP RequestPOST
Set image descriptionTransformEdit FieldsSee node parameters
Generate ImageAI & modelsOpen Aiimage
No Operation, do nothingRoutingNo OpSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • openAiApi

Workflow notes

Sticky Note50

Image Prompt

Prompt takes input of image description from the set image description node and generates using OpenAI

Sticky Note51

Upload image to ImgBB, Optimise using ReSmush.it and store as URL

Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size

Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size

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

Made by Simon @ automake.io

Sticky Note53

REQUIRED

ImgBB - image hosting i.e. gives you an img url

  1. Create an ImgBB account (free) and generate an api key
  2. Input the API key as Query Auth - name=key, value=your-own-api-key

ReSmush.it - image optimisation i.e. shrinks the file size of the image

  1. No account or auth needed
  2. Url will pass from previous node
Sticky Note54

OPTIONAL Set image description to create an Image using OpenAI and your own prompt (requires: API credentials) or alternatively replace these nodes with your own image file

Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size

Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size

Purpose and structure

This folder contains the Convert Image Files (JPG, PNG, JPEG) to URLs and Reduce File Size workflow. Its executable nodes use httpRequest, noOp, openAi, set. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Inspect connections; no recognized trigger.

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Http/0622_HTTP_Stickynote_Create_Webhook.json MIT; preserve source notices.

More in AI & research