Hey guys. Two small questions...I'm reading the docs regarding Image and Picture from astro. Question 1: If I have a svg file, and I import it in a component, is it ok if I use it as the value of the src attribute (for Image or Picture component)? Question number 2: My website is gonna be responsive for mobile, tablet, laptop, desktop. What should I use regarding google pagespeed Insight errors like "Properly size images" and "Image elements do not have explicit width and height" ? Image or Picture?
#Image or Picture?
8 messages · Page 1 of 1 (latest)
While I don't have an answer to your issue, (but I am seeing if I can find anything that could help) it would be nice if you tried not to ping all 30+ members of the support patrol this quickly after posting 😅 we are all here as volunteers and are not paid to support the community, so please bare with us as we try to help you solve your issue.
Sorry...I'm new here...didn't knew that. I'm really sorry
its all good, just wanted to let you know that we ALL got tagged when you pinged it, most the time it is supposed to be reserved for us to ping eachother when we need more eyes on something
- yes
- both works
And should I use the srcset and sizes for the Image?
Yes, most likely