No description
Find a file
2026-03-11 13:05:37 +00:00
.circleci Update dependency node to v7.1.1 (#395) 2025-08-06 21:34:46 +00:00
.github/workflows Delete .github/workflows/deploy.yml 2024-11-21 21:50:44 +00:00
src Refactor 2026-03-11 12:53:52 +00:00
test Refactor 2026-03-11 12:53:52 +00:00
.eslintignore Lint & bugfix 2020-08-26 20:16:35 +01:00
.eslintrc First version 2020-08-26 20:14:07 +01:00
.gitignore Ignore .vscode 2022-11-30 08:12:19 +00:00
.prettierignore First version 2020-08-26 20:14:07 +01:00
.prettierrc First version 2020-08-26 20:14:07 +01:00
CODE_OF_CONDUCT.md Initial commit from template 2020-08-26 18:51:40 +01:00
index.js Remove build error 2026-03-11 13:03:28 +00:00
jest.config.js Fix jest tests 2023-03-29 22:38:48 +01:00
LICENSE_MIT First version 2020-08-26 20:14:07 +01:00
package-lock.json Update dependency jest to v30 2026-03-11 13:04:33 +00:00
package.json Update dependency jest to v30 2026-03-11 13:04:33 +00:00
README.md Update README.md 2024-11-21 21:56:20 +00:00
renovate.json Update renovate.json 2024-12-13 15:55:09 +00:00
wrangler.toml Refactor 2026-03-11 12:53:52 +00:00

👷 image-resizing

Image resizing for Ghost blog image content using Cloudflare

Vortexmind Known Vulnerabilities Maintainability codecov

A Cloudflare Worker that uses Cloudflare's Image Resizing API to automatically compress any image served from the content/images/ path on a Ghost blog.

Image resizing is available to Business and Enterprise Cloudflare plans

Installation

Use the button below to deploy the worker automatically to your Cloudflare zone

Deploy to Cloudflare Workers

Or you can clone the repository and use wrangler to deploy it. Once deployed - to activate it you need to configure a route to your /content/images path to the worker For example

https://www.yourblog.com/content/images/*

This ensures that image requests under that path are intercepted by the worker and resized as appopriate

Features

  • The worker resizes images that have a /size/w<NUMBER>/ in the URL. For all such URLs, the worker will pull the original, unresized image and use it as a base for resizing.
  • The image is resized to the width provided in the w<NUMBER> path element. If the image does not have a size, or as a size greater than 1000 , then 1000 is used.
  • If an error occurs, the original image is loaded from the origin server.
  • metadata is stripped except copyright