Closed6

【2024Q2】Astroは組み込みの <Image /> と <Picture /> を今後どうするつもりなのか

macropygiamacropygia

Stage 4 (Finished RFC)

画像に関する基本方針 (2023-02-08)

https://github.com/withastro/roadmap/blob/main/proposals/0030-core-image-story.md

Non-goals of this proposal
Advanced usage in Markdown (ability to set width, height, quality etc)
Using optimized images inside framework components
Automatic generation of srcset
Placeholders generation
Background generation
Picture component
Optimizing remote images
.svg support

Pictureコンポーネント (2023-09-22)

https://github.com/withastro/roadmap/blob/main/proposals/0043-picture-component.md

macropygiamacropygia

雑感

  • 関連するProposalはちらほら見かけるのでどこかで取りまとめてRFC入りする可能性はありそう
  • CSSへの応用には一定の需要がありそう
    • background-image image-set
  • コンポーネントとは別に必要なものを色々取り出せるAPIがあるとよさそう
    • その場合本体はFragmentで設置するしかないか
  • Astro自体のビルドプロセスの前に動的にコンポーネントを生成することはできるか
このスクラップは22日前にクローズされました