Astro Image Examples
This page demonstrates the usage of the Astro <Image>
& <Picture>
components with examples. The source code for all these examples can be found here.
Note: Images placed in /public
can still be used with both components,
an unprocessed copy of the original image will be moved to the build folder.
Local Image.
Here is an basic example using a local image, the location of which can be found in src/assets
, and the image source found
here.
<Image>
<Code>
<Picture>
<Code>
External Image.
The following are basic examples of referencing an external image, found @
astro.build/press.
<Image>
<Code>
<Picture>
<Code>