44 ms·
Visuals are hard to include because you need to store them somewhere. If you store the in the git repo, they bloat the repo. It's really annoying to clone a rep
by janosdebugs 3y ago
Visuals are hard to include because you need to store them somewhere. If you store the in the git repo, they bloat the repo. It's really annoying to clone a repo and having to wait forever because it has a bunch of binaries in it. I try to use SVG whenever possible, sometimes animated with CSS (see example[1]) as they are made if text and are much smaller. When I need non-SVG images, I host them externally, but that's a bit if an overhead and you need to make sure you don't break the image link accidentally.
[1] https://github.com/gotesttools/gotestfmt https://github.com/gotesttools/gotestfmt
- rossant 3y agoI believe if you just copy paste an image in the GitHub text editor, or drag and drop one into it, GitHub will automatically upload it to their own image upload service and will insert the markdown code to show it.
- janosdebugs 3y agoI believe that's true, but I'd guess most people don't edit their README using the GitHub editor.