being able to set the image filename #35866
Replies: 3 comments
-
I just realised my thinking was way too easy. This is too dynamic, how would the sharp images get their name in building to the static folder.. So it should be in the Graphql side of things, but how would you put a dynamic value in your query :/ |
Beta Was this translation helpful? Give feedback.
-
Or maybe allow each image to be renamed only once ? Came across #15023 (comment) as a possible solution
|
Beta Was this translation helpful? Give feedback.
-
The only solution I can see right now using the |
Beta Was this translation helpful? Give feedback.
-
My images are sourced from Strapi, which adds a hash to all images. (e.g.: image_e2cba.jpg)
my clients wants to have full control over the image names for SEO purposes. I'd be great if I can programmatically change the filename
gatsby-plugin-image
outputs. Strapi has afilename
field in the UI. But there's no way for me to use that as the actual filename in the gatsby output (and Strapi doesn't let me rename files).So being able to do something like:
Beta Was this translation helpful? Give feedback.
All reactions