New

Introducing Dedicated IPFS Gateways for Free Plans

Read

Image Optimization.

Transform and optimize images in real-time.Built for developers who need speed.

preview.jpg• 2.4 MB
320 × 320
Parameters
Transform
px
px
Format
Quality
80%
Generated URL
https://example.com/image.jpg?w=800&h=600&fmt=original format&q=80

Transform images on-the-fly

Optimize any image with simple URL parameters

https://gateway.myfilebase.com/ipfs/QmHash

Image Transformation Examples

Transform images using simple URL parameters. See examples of common transformations and their syntax.

// Basic image transformations
https://{SUBDOMAIN}.myfilebase.com/ipfs/{CID}?img-width=800&img-height=600

// With line breaks for readability
https://{SUBDOMAIN}.myfilebase.com/ipfs/{CID}
  ?img-width=800
  &img-height=600

Dimensions

img-width, img-height

Format

img-format, img-quality

Fit & Position

img-fit, img-gravity

Enhancement

img-sharpen, img-blur

Metadata

img-metadata

Output

img-background, img-flatten

Image Parameters Reference

Complete reference of all available image transformation parameters and their options.

Dimensions & Sizing

Width

img-width

Set the output width of the image in pixels.

Range1-10000
Defaultoriginal

Height

img-height

Set the output height of the image in pixels.

Range1-10000
Defaultoriginal

Device Pixel Ratio

img-dpr

Specifies the device pixel ratio for responsive images.

Range1-3
Default1

Fit

img-fit

Specify how the image should fit within the given dimensions.

Options
scale-downcontaincovercroppad
Defaultcover

Position

img-gravity

Control the focus point when cropping images.

Options
autocenternorthsoutheastwestXxY
Defaultcenter

Format & Quality

Format

img-format

Convert image to specified format.

Options
autowebpjpegpnggif
Defaultoriginal

Animation

img-anim

Control animation frames for GIFs and animated images.

Options
truefalse
Defaulttrue

Quality

img-quality

Adjust compression quality for lossy formats.

Range1-100
Default80

Metadata

img-metadata

Control preservation of image metadata.

Options
keepcopyrightnone
Defaultnone

Enhancements

Sharpen

img-sharpen

Apply sharpening to the output image.

Range0-10
Default0

Blur

img-blur

Apply Gaussian blur to the image.

Range0.3-1000
Default0

Rotate

img-rotate

Rotate the image by specified degrees.

Options
090180270
Default0

Background

img-background

Set background color for images with transparency.

Defaultwhite

Error Handling

Error Response

img-onerror

Specify behavior when transformation fails.

Options
redirect404
Default404

Enterprise-grade Image Processing

Transform and deliver images at scale with our powerful optimization platform. Perfect for e-commerce, media libraries, and content-heavy applications.

Real-time Transformations

Transform images on-the-fly with simple URL parameters. Support for resize, crop, and format conversion.

Format & Quality Control

Automatic conversion to modern formats like WebP. Fine-tune quality and compression settings.

Advanced Optimizations

Smart features like auto-fit, gravity detection, and image sharpening.

Metadata Control

Preserve or strip image metadata with metadata controls. Support for copyright retention.

How does image optimization work?

Transform and optimize images in two simple steps.

01

1. Upload or Reference Images

Upload directly to IPFS or transform existing content via CID.

02

2. Configure Transformations

Apply transformations via URL parameters. Resize, convert formats, optimize quality.

Global CDN Delivery

Images are transformed on-demand with automatic caching and CDN delivery.

Usage Analytics

Track usage with storage and bandwidth metrics.

Use Case Library

Real-world examples of image transformations for different industries and applications.

NFT Marketplace

Optimize NFT previews and thumbnails while preserving quality for high-value digital assets.

Example Parameters:
?img-width=800&img-format=webp&img-quality=95&img-metadata=keep

DeFi Platform

Serve optimized token and chart images across different devices and screen sizes.

Example Parameters:
?img-width=400&img-height=400&img-fit=contain&img-format=webp

GameFi Assets

Deliver game assets and character renders with optimal performance.

Example Parameters:
?img-width=512&img-format=webp&img-quality=90&img-dpr=2

dApp Interface

Optimize UI elements and icons for Web3 applications.

Example Parameters:
?img-width=64&img-format=webp&img-quality=90&img-fit=contain

IPFS Gateway

Serve optimized images from decentralized storage with automatic format conversion.

Example Parameters:
?img-format=auto&img-quality=85&img-metadata=none

DAO Dashboard

Display member avatars and proposal images with consistent sizing.

Example Parameters:
?img-width=300&img-height=300&img-fit=cover&img-gravity=auto

AI/ML Models

Process and optimize training data and model output images.

Example Parameters:
?img-width=512&img-format=webp&img-quality=85&img-sharpen=0.5

Crypto Wallet

Serve token icons and NFT previews with efficient caching.

Example Parameters:
?img-width=128&img-format=webp&img-quality=90&img-fit=contain

E-commerce Platform

Reduce bandwidth costs by up to 70% with automatic WebP conversion and responsive images.

Example Parameters:
?img-width=800&img-format=webp&img-quality=80&img-dpr=2

Need help with image transformations?

Our team can help with questions and custom use cases.

Why image optimization matters

Image optimization isn't just about faster loading—it's about significant cost savings. Unoptimized images can drastically increase your storage and bandwidth costs.

Real-world example:

10,000 NFT collection
3.5 MB average image size
500,000 monthly views

See how image optimization can reduce your costs by up to 77% through automatic WebP conversion, quality optimization, and smart delivery.

Without Optimization

$27per month

Storage

Size per Image3.5 MB
Total Storage34 GB
Monthly Cost$1

Bandwidth

Monthly Views500k
Total Bandwidth1709 GB
Monthly Cost$26

With Optimization

$6per month

Storage

Size per Image0.8 MB
Total Storage8 GB
Monthly Cost$0

Bandwidth

Monthly Views500k
Total Bandwidth391 GB
Monthly Cost$6

Potential Monthly Savings

$21per month

By implementing image optimization, you can:

  • Reduce storage costs by 77%
  • Reduce bandwidth costs by 77%
  • Improve load times and user experience

* Calculations based on 10,000 images at $0.04/GB storage and $0.015/GB bandwidth. Actual savings may vary based on your specific usage patterns.

Transform without limits

Unlike other CDNs, we don't cap your image transformations. Process as many images as you need, at any scale.

Free

Perfect for testing and small projects

$0/month

Billed monthly, cancel anytime

Storage & Bandwidth

5/GB GB Storage
5/GB GB Bandwidth

Image Processing

1 Dedicated Gateway + CDN
Unlimited Image Transformations
Basic Support

Starter

Ideal for growing applications

$20/month

Billed monthly, cancel anytime

Storage & Bandwidth

800/GB GB Storage
800/GB GB Bandwidth

Image Processing

1 Dedicated Gateway + CDN
Unlimited Image Transformations
Add+ Storage $0.08/GB
Add+ Bandwidth $0.015/GB

Pro

Built for high-volume production

$100/month

Billed monthly, cancel anytime

Storage & Bandwidth

4/TB TB Storage
4/TB TB Bandwidth

Image Processing

5 Dedicated Gateways + CDN
Unlimited Image Transformations
Add+ Storage $0.04/GB
Add+ Bandwidth $0.015/GB

Ready to Transform Your Images?

Get reliable, high-performance image transformations with global CDN delivery. Start optimizing your images at scale today.