Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You just use the image component and specify the sizes. The png fallback is provided via the server looking for the Accept header so when it supports webp it gives you webp, otherwise you get png (or jpg depending on the original extension)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: