Creating a background gradient from an image

December 12th, 2024//Ep. 201

Ryan talks to Sam about reproducing iOS's new image background treatment for his Open Graph Preview tool, opengraph.ing. They talk about different approaches for generating gradients from images, including finding the vibrant color of an image, luminosity-weighted averages, k-means clustering, and more.

Timestamps

  • Intro
  • Apple's new OG image gradient
  • Luminosity-weighted average
  • Finding the vibrant color of an image
  • Contrast ratios on favicons
  • K-means clustering
  • Refactoring UI tip about rotating the hue