di
specifies the path of the image that must be delivered when the original image is not available. The default image must be available within the Media library and not in your origin. All the transformations applied to the original image are applied to the default image as well, before delivering it.https://ik.imagekit.io/demo/medium_cafe_B1iTdD0C.jpg
https://ik.imagekit.io/demo/tr:di-medium_cafe_B1iTdD0C.jpg/non_existent_image.jpg
If the default image is nested inside multiple folders, then you need to specify the entire default image path in this parameter. Replace/
with@@
in the default image path. For example, if the default image is accessible onhttps://ik.imagekit.io/demo/path/to/image.jpg
, then thedi
parameter should be[email protected]@[email protected]@[email protected]@image.jpg
.