From 43875e266b6c6de15572ca906be23ee308339a09 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Tue, 5 May 2026 16:16:40 +0530 Subject: [PATCH 01/18] Add ImageKit media guide - Adds src/content/docs/en/guides/media/imagekit.mdx with setup, image/video, OG image, client uploads, content-collection loader, and Node.js usage- Adds public/logos/imagekit.svg and registers it in src/data/logos.ts (alphabetically between image and juno)- Mentions ImageKit alongside Cloudinary in guides/images.mdx and reference/image-service-reference.mdx- Auto-registered in MediaGuidesNav via type: media frontmatter- i18nReady: false (translations to follow) --- public/logos/imagekit.svg | 1 + src/content/docs/en/guides/images.mdx | 2 +- src/content/docs/en/guides/media/imagekit.mdx | 311 ++++++++++++++++++ .../en/reference/image-service-reference.mdx | 2 +- src/data/logos.ts | 1 + 5 files changed, 315 insertions(+), 2 deletions(-) create mode 100644 public/logos/imagekit.svg create mode 100644 src/content/docs/en/guides/media/imagekit.mdx diff --git a/public/logos/imagekit.svg b/public/logos/imagekit.svg new file mode 100644 index 0000000000000..1387707921c94 --- /dev/null +++ b/public/logos/imagekit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/content/docs/en/guides/images.mdx b/src/content/docs/en/guides/images.mdx index 8a1ceb4d90939..5602b838c45aa 100644 --- a/src/content/docs/en/guides/images.mdx +++ b/src/content/docs/en/guides/images.mdx @@ -541,7 +541,7 @@ Use the HTML `` element when you cannot use the `` component, for Image CDNs work with [all Astro image options](#images-in-astro-files). Use an image's full URL as the `src` attribute in the `` component, an `` tag, or in Markdown notation. For image optimization with remote images, also [configure your authorized domains or URL patterns](#authorizing-remote-images). -Alternatively, the CDN may provide its own SDKs to more easily integrate in an Astro project. For example, Cloudinary supports an [Astro SDK](https://astro.cloudinary.dev/) which allows you to easily drop in images with their `CldImage` component or a [Node.js SDK](https://cloudinary.com/documentation/node_integration) that can generate URLs to use with an `` tag in a Node.js environment. +Alternatively, the CDN may provide its own SDKs to more easily integrate in an Astro project. For example, Cloudinary supports an [Astro SDK](https://astro.cloudinary.dev/) which allows you to easily drop in images with their `CldImage` component or a [Node.js SDK](https://cloudinary.com/documentation/node_integration) that can generate URLs to use with an `` tag in a Node.js environment. ImageKit also provides an [Astro SDK](https://github.com/imagekit-developer/imagekit-astro) that registers an image service so Astro's built-in `` and `` components are routed through ImageKit automatically. See the full API reference for the [``](/en/reference/modules/astro-assets/#image-) and [``](/en/reference/modules/astro-assets/#picture-) components. diff --git a/src/content/docs/en/guides/media/imagekit.mdx b/src/content/docs/en/guides/media/imagekit.mdx new file mode 100644 index 0000000000000..3c0ca623637c1 --- /dev/null +++ b/src/content/docs/en/guides/media/imagekit.mdx @@ -0,0 +1,311 @@ +--- +title: ImageKit & Astro +description: Add images and videos to your Astro project using ImageKit +sidebar: + label: ImageKit +type: media +stub: false +logo: imagekit +i18nReady: false +--- +import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'; + +[ImageKit](https://imagekit.io) is a real-time media optimization and delivery platform with a global CDN, a built-in Digital Asset Manager (DAM), and a URL-based transformation API for images and videos. + +When delivering through ImageKit, you get automatic format conversion (AVIF, WebP), automatic quality, responsive images, AI-powered transformations (background removal, generative fill, upscaling), and adaptive video streaming. + +## Using ImageKit in Astro + +The [ImageKit Astro SDK](https://github.com/imagekit-developer/imagekit-astro) registers a custom [image service](/en/reference/image-service-reference/) that re-routes Astro's built-in `` and `` components, plus Markdown and MDX images, through ImageKit. Local imports continue to be processed by Astro's built-in sharp service, so the integration can be added to an existing project without breaking existing assets. + +The SDK also provides a `