Deploy PicFlow: On-the-fly Image Processing
High-performance Bun image server with real-time Sharp transforms.
PicFlow Image Server
Just deployed
Deploy and Host PicFlow: On-the-fly Image Processing on Railway
PicFlow is a high-performance image transformation server built with Bun, Sharp, and S3-compatible object storage. It streams images directly from storage and applies real-time transformations like resizing, rotation, optimization, and format conversion with support for AVIF, WebP, PNG, and JPEG.
About Hosting PicFlow: On-the-fly Image Processing
Hosting PicFlow on Railway provides a scalable and production-ready image processing service without managing infrastructure manually. PicFlow connects to any S3-compatible storage provider and transforms images on demand using Sharp’s high-performance streaming pipeline.
The service supports resizing, cropping, rotation, filters, automatic format negotiation, and image optimization while minimizing memory usage through stream-based processing. Railway simplifies deployment with automatic builds, environment variable management, networking, observability, and horizontal scaling, making it easy to integrate PicFlow into modern web applications, CDNs, CMS platforms, and media-heavy services.
Common Use Cases
- Dynamic image resizing and CDN optimization
- Real-time AVIF and WebP image conversion
- Media processing for headless CMS and SaaS platforms
Dependencies for PicFlow: On-the-fly Image Processing Hosting
- Bun
- Sharp
- S3-compatible object storage
Deployment Dependencies
- https://bun.sh
- https://sharp.pixelplumbing.com
- https://docs.railway.com
- https://aws.amazon.com/s3/
- https://github.com/dane-stevens/image-optimization
Implementation Details
Example image transformation request:
/images/photo.jpg?width=1200&format=webp
Example environment variables:
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
S3_ENDPOINT=
S3_BUCKET=
S3_REGION=
Documentation and full API examples:
https://github.com/dane-stevens/image-optimization#readme
Why Deploy PicFlow: On-the-fly Image Processing on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying PicFlow: On-the-fly Image Processing on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
PicFlow Image Server
dane-stevens/image-optimizationS3_BUCKET
S3_ENDPOINT
S3_ACCESS_KEY_ID
S3_SECRET_ACCESS_KEY
