Getting started

Integration & migration

Image & video API

DAM user guide

API overview

Account

Migration from Imgix to ImageKit.io

Learn how to migrate from Imgix to ImageKit without changing existing URLs.


If you are using Imgix, migrating to ImageKit.io is straightforward and can be done without changing your existing URLs. This guide will help you understand the steps to migrate from Imgix to ImageKit.io.

Step 1: Configure external storage

ImageKit supports all external storage that Imgix supports. That means you can easily configure existing storage in ImageKit. Refer to configure external storage and follow the integration steps based on your storage.

Step 2: Enable Imgix URL rewriter

Open URL endpoints in the dashboard, and enable "URL rewriter" in the desired URL endpoint under the "Advanced settings" tab, and select "Imgix" from the dropdown. This will parse the incoming URL transformations to the format that ImageKit understands. This allows you to keep the existing Imgix transformations in your application and still use ImageKit for media optimization, transformation, and delivery.

Step 3: Test and make the switch

Now, you should be able to access existing assets through ImageKit. At the same time, existing Imgix transformations should work without any changes.

Let's fetch an image without any transformation. The same would work for other file types as well.

Let's see if transformations work as expected. The same would work for videos as well.

Refer to the Imgix URL rewriter specification for a list of supported transformations and how they are translated.

Once you are confident that ImageKit is serving your assets correctly, you can either:

  1. If you use a custom domain on Imgix, then read more about setting up a custom domain on ImageKit for media delivery.
  2. Otherwise, replace the imgix domain example.imgix.net in your URLs with ik.imagekit.io/your_imagekit_id.

Imgix URL rewriter specification

Imgix transformation Example translation Remarks
widthw=100w-100
heighth=100h-100

aspect ratio

ar=2:3ar-2-3

ar=3:1ar-3-1

ar=2:4ar-2-4

Aspect ratio will only work when we provide either width or height (not both) and fit

crop

crop=topfo-top

crop=top,leftfo-top_left

crop=left,topfo-top_left

crop=facesfo-auto

Supported values:

  • top

  • left

  • right

  • bottom

  • top,left

  • top,right

  • bottom,right

  • bottom,left

  • left,top

  • right,top

  • right,bottom

  • left,bottom

  • faces

fit

fit=clipc-at_max_enlarge

fit=fillcm-pad_resize

fit=scalec-force

fit=cropno mapping required

fit=fillmaxcm-pad_resize

fit=maxc-at_max

fit=faceareafo-face

Supported values:

  • clip

  • crop

  • fill

  • fillmax

  • max

  • scale

  • facearea

fill

Supported values:

  • solid

format

fm=jpgf-jpg

Supported values:

  • jpeg → jpeg

  • jpg → jpg

  • jp2 → jpg

  • png → png

  • webp → webp

  • gif → gif

  • avif → avif

  • png8 → png

  • png32 → png

qualityq=60q-60

orient

Supported values:

  • 1 → 0

  • 6 → 90

  • 3 → 180

  • 8 → 270

  • 0 → 0

  • 90 → 90

  • 180 → 180

  • 270 → 270

fill-color

fill-color=redbg-red

fill-color=BLUEbg-blue

fill-color=AAAA54bg-AAAA54

fill-color=A9AAAA54bg-AAAA5466

fill-color=B4Fbg-BB44FF

fill-color=9B4Fbg-BB44FF60

Color values are case-insensitive

bg

bg=redbg-red

bg=BLUEbg-blue

bg=AAAA54bg-AAAA54

bg=A9AAAA54bg-AAAA5466

bg=B4Fbg-BB44FF

bg=9B4Fbg-BB44FF60

Color values are case-insensitive

dprdpr=3.0dpr-3.0

sharp

sharp=10e-sharpen-200

sharp=100e-sharpen-2000

The final result produced by ImageKit could differ from the result obtained from Imgix.

con

con=30e-contrast

con=-50e-contrast

The final result produced by ImageKit could differ from the result obtained from Imgix.

usmusm=40e-usm-2.5-8.00-1-0.05The final result produced by ImageKit could differ from the result obtained from Imgix.

usmrad

usm=-50&usmrad=2e-usm-2-0.00-1-0.05

usmrad only works in conjunction with usm

The final result produced by ImageKit could differ from the result obtained from Imgix.

blur

blur=100bl-5.00

blur=90bl-4.50

The final result produced by ImageKit could differ from the result obtained from Imgix.

trim

trim=autot-true

trim=colort-true

The final result produced by ImageKit could differ from the result obtained from Imgix.