cloudinary-community / imagecarbon

🌱 Calculate the carbon footprint of your website images
https://imagecarbon.com
Apache License 2.0
24 stars 2 forks source link

Parse srcset in scraping #1

Open colbyfayock opened 1 year ago

colbyfayock commented 1 year ago

If using a srcset attribute, the src may not be optimized

Parse the srcset if available and find the largest size, use that or the calculation

If multiple, could even provide a "stack" UI that implies the srcset with messaging on which one was used