From ca24a60b138445af132a7054582c1ed972b5dc49 Mon Sep 17 00:00:00 2001 From: Tc001 <55956895+Tc-001@users.noreply.github.com> Date: Fri, 26 Aug 2022 00:39:22 +0200 Subject: [PATCH] Earlier import snippet for `@astrojs/image` (#4484) Co-authored-by: Sarah Rainsberger --- packages/integrations/image/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md index 1e1275e96..28cccec97 100644 --- a/packages/integrations/image/README.md +++ b/packages/integrations/image/README.md @@ -82,6 +82,12 @@ Or, alternatively if your project is using the types through a `tsconfig.json` ## Usage +```astro title="src/pages/index.astro" +--- +import { Image, Picture } from '@astrojs/image/components'; +--- +``` + The included `sharp` transformer supports resizing images and encoding them to different image formats. Third-party image services will be able to add support for custom transformations as well (ex: `blur`, `filter`, `rotate`, etc). ### ``