Skip to content

imgpush

Minimal self-hosted image upload and resize API for app avatars and user images

Permissive (OSI) · MIT

Listed by , founder & editor

40

Health

Slowing

Overview

Stars

358

Last commit

3 months ago

Sep 2026

Repository age

7 years

since Jun 2019

Latest version

–

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Docker pulls

115k

hauxir/imgpush

Language

Python

imgpush is a small Python service that accepts image uploads over one HTTP endpoint and serves them back. It is meant for images users submit to your app, such as avatars.

Uploads can be sent as a file or by URL. The service converts images to a format you choose and resizes them on request: adding width and height parameters to the file URL returns a cropped version at that size. It includes rate limiting, an allowed-origin whitelist, a liveness endpoint, and a delete endpoint protected by an API key. Deleting removes the original and all cached resized copies. Files are stored on a local volume, or on an S3-compatible backend such as AWS S3, Cloudflare R2 or MinIO.

You run it as a single Docker container, and the repository includes an example Kubernetes deployment. It is MIT licensed. Use it in place of hosted image upload and transformation services when your needs are basic.

Who it's for

App developers handling user avatars

One endpoint covers upload, conversion and resizing without a custom pipeline.

Skip if: You need a photo library with albums and browsing.

Self-hosters on Docker or Kubernetes

It runs as one container with an example Kubernetes manifest.

Skip if: You want a service with frequent releases.

Teams already using S3-compatible storage

It can store images in S3, R2 or MinIO.

Skip if: You need advanced editing or transformation features.

The problem it solves

Accepting user images in your app means writing upload handling, validation, resizing and storage. imgpush provides that as a small service you run yourself. You avoid sending user images to a third-party host.

Strengths

  • Single upload endpoint, with upload by file or URL
  • Converts format and resizes through URL parameters
  • Built-in rate limiting and origin whitelisting
  • Optional S3-compatible storage such as R2 and MinIO
  • Delete API clears the original and cached resizes

Trade-offs

  • No web gallery or album features
  • Maintenance has slowed, with no releases in the past year
  • Only one primary contributor recently
  • Requires Docker to run as documented

Self-host imgpush

Self-hostable
Yes
Docker image
hauxir/imgpush
Docker Compose
The repository ships a Compose file

Quick start

docker run -v <PATH TO STORE IMAGES>:/images -p 5000:5000 hauxir/imgpush:latest

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is imgpush free?

Yes. It is MIT licensed and free to self-host.

How do I run it?

Use the hauxir/imgpush Docker image and mount a folder for stored images. A Kubernetes example is also provided.

Can it store images in S3?

Yes. It supports S3-compatible backends including AWS S3, Cloudflare R2 and MinIO.

Can it resize images?

Yes. Add width and height parameters to the image URL to get a cropped version at that size.

Similar tools in Photo storage and galleries

ipfspics-server

Photo storage and galleries

Self-hosted image gallery built on IPFS, for people who want peer-to-peer picture sharing

1.1k 107 7 years ago Dormant AGPL-3.0

Telegraph-Image

Photo storage and galleries

Image host you deploy on Cloudflare Pages, storing uploads in a Telegram channel

4.7k 8.8k 4 months ago Dormant CC0-1.0

Slink

Photo storage and galleries

Self-hosted image sharing site with collections, share links and OIDC sign-in

1.6k 49 17 days ago Active AGPL-3.0

Replaces Imgur

shotshare

Photo storage and galleries

Self-hosted image sharing for friends who want screenshot links without ads

179 15 2 years ago Dormant MIT

Picsur

Photo storage and galleries

1.2k 69 13 months ago Dormant AGPL-3.0