Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created September 19, 2018 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uploadcare-user/b645069b4470bf8efe23f7254c82893b to your computer and use it in GitHub Desktop.
Save uploadcare-user/b645069b4470bf8efe23f7254c82893b to your computer and use it in GitHub Desktop.
Uploadcare simplified WebP formatting and variable resolution (no <picture> tag)
<img src="https://ucarecdn.com/:uuid/-/format/auto/"
srcset="https://ucarecdn.com/:uuid/-/format/auto/-/resize/300x/ 300w,
https://ucarecdn.com/:uuid/-/format/auto/-/resize/600x/ 600w"
sizes="300px">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment