Closed Princesseuh closed 1 year ago
I had spoken with @Princesseuh about how cool it would be to store blog images in the content
folder: one folder per article with its MDX file and its images, rather than cluttering the public
folder.
Super happy to see this feature could be landed on Astro, especially with all the optimization and resizing tools... I'm testing this immediately!
Thanks for the excellent work 😊
@Princesseuh I tried the relative asset in Markdown as described in RFC here https://github.com/withastro/roadmap/blob/feat/core-image-story/proposals/0030-core-image-story.md#image-in-markdown
with Astro 2.1.2 and experimental: { assets: true }
.
The scope of this question is not to troubleshoot but only to ask if it is still in the race as part of this RFC or not ? As I could not find a reference to it in the doc
https://docs.astro.build/en/guides/images/
I was also wondering if SVG could profit of colocation without necessarily enduring any optimization or is it rather just excluded for the moment ?
@Princesseuh I tried the relative asset in Markdown as described in RFC here https://github.com/withastro/roadmap/blob/feat/core-image-story/proposals/0030-core-image-story.md#image-in-markdown with Astro 2.1.2 and
experimental: { assets: true }
. The scope of this question is not to troubleshoot but only to ask if it is still in the race as part of this RFC or not ? As I could not find a reference to it in the doc https://docs.astro.build/en/guides/images/I was also wondering if SVG could profit of colocation without necessarily enduring any optimization or is it rather just excluded for the moment ?
Relative images in Markdown are still part of the plan, as you can see on this page: https://docs.astro.build/en/guides/assets/
They're currently supported in the experimental feature, although people have been reporting issues getting it working (that I'm hoping to fix next week!)
SVGs are out of scope for this specific feature at the moment, but could certainly be included in the feature in the future (specifically meaning relative assets, not optimization)
We are now entering the final comment period of this RFC. If there are no objections it will be merged later this week. Thanks!
An emphatic +1 on this RFC! Thank you for all of your hard work on this @Princesseuh!
Summary
This RFC aims to outline a plan to simplify the usage, optimization and resizing of images in Astro without the need of an integration.
Links