Nicer image optimization names #726
MrAmericanMike
started this conversation in
Proposal
Replies: 1 comment
-
We need this due to client's legacy system limitations. Is it even possible? I don't understand why Astro is opinionated about this, and not configurable. Surely there is a way to have the cake and eat it too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
Main topic was started here withastro/docs#4990 but I was recommended to post it on the roadmap.
The main idea is to be able to customize or have more control over the generated names for optimized images.
As mentioned in the documentation:
The hash
a6737dd3
looks just horrible and doesn't tell anything. My idea is to be able to have that, become something more like.cat-300x200.jpg
Also related to this, I noticed that images in the
pages/some_route/image.jpg
end up in the_astro
folder at build time, and even the files inassets/some_route/image.jpg
also end up in_astro
at build time. It would be great if Astro could do something to keep the folder structure, or give us control over that.Background & Motivation
Not sure what the "Background & Motivation" means. So I'll just say, I'm suggesting this, to make the output files be more "user friendly" to read, not only for visitors to the site, but for anyone looking at the build project and seen those files and been able to tell at a glance what each one represents. (If I'm not mistaken Wordpress does something like this)
Goals
Example
Not applicable.
Beta Was this translation helpful? Give feedback.
All reactions