#Quality of images in .md files
2 messages · Page 1 of 1 (latest)
Based on the provided knowledge sources, there isn't a direct way to change the quality of a local image within the normal Markdown syntax in Astro content collections. The standard Markdown  syntax is used for images in .md files, but it doesn't provide options for adjusting image quality.
According to the Images in Markdown files section:
# My Markdown Page
<!-- Local image stored in src/assets/ -->
<!-- Use a relative file path or import alias -->

This syntax works with Astro's Image Service API to optimize local images stored in src/, but it doesn't offer a way to specify quality settings.
If you need more control over image attributes, including quality, the documentation suggests using the MDX file format instead. MDX allows you to use components within Markdown, which would give you access to the <Image /> component. With the <Image /> component, you can use the quality property to adjust image quality.
Images in content collections mentions that images in content collections are processed the same way as in Markdown files, so the same limitations apply.