4 ms·
Why do screenshots at all? Just parse the open graph metadata and get the meta image the site wants to display rather than screenshotting it. Most sites these
by mxstbr 9y ago
Why do screenshots at all? Just parse the open graph metadata and get the meta image the site wants to display rather than screenshotting it.
Most sites these days have a meta tag for images they want to display which is likely optimized for exactly this usage. Can always fallback to screenshots if those don't exist, but I'm pretty certain it'd be more pleasing.
You could implement this in less 10 minutes with micro-open-graph[0] (disclaimer: I made that). Runs on now.sh, so it's free to host too. (depending on how much traffic you send to it)
[0]: https://github.com/mxstbr/micro-open-graph https://github.com/mxstbr/micro-open-graph
- fny 9y agoI love the screenshot! I even realized I'm not even looking at the title and metadata anymore unless the image is borked.
- coldtea 9y ago>Why do screenshots at all? Just parse the open graph metadata and get the meta image the site wants to display rather than screenshotting it. Because screenshots show what you'll actually see in the site? I don't care for the "meta image the site wants to display" at all.