1

Twitter embed support

This commit is contained in:
Evan Pratten 2021-08-21 20:36:39 -04:00
parent 8f59a10620
commit 49db426aeb
3 changed files with 8 additions and 4 deletions

View File

@ -7,9 +7,9 @@ tags: python images
redirect_from:
- /post/ef7b3166/
- /ef7b3166/
uses:
- twitter
aliases: [/blog/2019/09/11/buildingimgfrombin]
extra:
uses_twitter: true
---
During a computer science class today, we were talking about embedding code and metadata in *jpg* and *bmp* files. @exvacuum was showing off a program he wrote that watched a directory for new image files, and would display them on a canvas. He then showed us a special image. In this image, he had injected some metadata into the last few pixels, which were not rendered, but told his program where to position the image on the canvas, and it's size.

View File

@ -7,9 +7,9 @@ tags: gamedev gamejam team ldjam javascript
redirect_from:
- /post/ebsdjtd9/
- /ebsdjtd9/
uses:
- twitter
aliases: [/blog/2020/04/20/ludumdare46]
extra:
uses_twitter: true
---
Over the past weekend I teamed up with @rsninja722, @wm-c, @exvacuum, @marshmarlow, and our friends Sally and Matt to participate in the [LudumDare46](https://ldjam.com/events/ludum-dare/46) game jam. This post will outline the game development process.

View File

@ -40,4 +40,8 @@ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], displayMat
{{page.content | safe}}
</div>
</article>
{% if page.extra.uses_twitter %}
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{% endblock content %}