Go to file
2025-04-20 01:20:58 +03:00
.dockerignore first commit 2025-04-19 22:17:28 +03:00
.gitignore first commit 2025-04-19 22:17:28 +03:00
bun.lock first commit 2025-04-19 22:17:28 +03:00
docker-compose.yml remove config 2025-04-19 22:19:37 +03:00
Dockerfile first commit 2025-04-19 22:17:28 +03:00
index.ts add sleep function on failure 2025-04-20 01:11:34 +03:00
minio.ts code enhancement 2025-04-19 23:30:01 +03:00
package.json first commit 2025-04-19 22:17:28 +03:00
process-image.ts code enhancement 2025-04-19 23:30:01 +03:00
README.md update readme file 2025-04-20 01:20:58 +03:00
tsconfig.json first commit 2025-04-19 22:17:28 +03:00

Minio Worker

this worker is used to listen to mini events and then create new images variants

To install dependencies:

bun install

To run:

bun run index.ts

To Build Container:

docker buildx build --platform linux/amd64 -t git.farahty.com/nimer/minio-worker .

To Push Container to Registry:

docker push git.farahty.com/nimer/minio-worker

Supported Image Types (Sharp + MinIO)

Format Read Support Resize/Optimize WebP/Thumb Output Notes
.jpg, .jpeg Yes Yes Yes Fully supported
.png Yes Yes Yes Fully supported
.webp Yes Yes Yes Can read and re-encode
.tiff, .tif Yes Yes Yes Large file sizes; not common on web
.gif ⚠️ Yes (only first frame) ⚠️ Static only Yes (first frame) Sharp does not support animated GIFs
.avif Yes (Sharp ≥0.29) Yes Yes Needs libvips compiled with AVIF
.svg No No No Sharp does not support SVGs as input
.bmp, .ico Yes Yes Yes Low web usage; still supported

This project was created using bun init in bun v1.2.10. Bun is a fast all-in-one JavaScript runtime.