􀀂􀀟􀀍􀀄 􀀂􀀘􀀋 Failed Experiment: Svg Tweets

Cool idea: https://shkspr.mobi/blog/2021/02/minimum-viable-tweet-to-svg-2/

However, I couldn’t make it work well enough for me. This is a log of my experiments. The writing is not polished and there very well may be mistakes.

Later, I found https://tweet.cluster.fun, which is a Go implementation of edent’s original idea. To make this work, they have to calculate the SVG height. ulated height is then hard-coded in the resulting SVG file. In theory, I could do something similar in Python, but I haven’t tried yet.

  1. First attempt: Generating SVG files
  2. Second attempt: Calculating the size in JavaScript
  3. Third attempt: bounding rects, bboxes, …

To try:


Comments are hosted on this site and powered by Remark42 (thanks!).

Webmentions are hosted on remote sites and syndicated via Webmention.io (thanks!).