Image Optimization #80
Unanswered
lifeiscontent
asked this question in
Q&A
Replies: 1 comment 7 replies
-
For your first question, this is useful for user submitted images. You would ask them to provide the alt text and then wherever you display the image you would include the alt text on the image. For your second question, I'll be building a special route that allows transformations similar to cloudinary (likely using |
Beta Was this translation helpful? Give feedback.
7 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.
-
Hi, I noticed that there is an altText attribute on the image model but no usages of it in the code, how would you go about using it?
also, for things like image variants (resized images / alternative formats) how would you go about dealing with that? one idea that came to mind was to have a one to many relationship to the image model to ask for a specific variant.
e.g. if variant exists, use it, otherwise create it with
sharp
and store it for later to use with a picture element.Beta Was this translation helpful? Give feedback.
All reactions