aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/posts/imagemagick-email.md
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-16 06:51:37 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-16 06:51:37 -0400
commit5634e70571eac6d9e525cce3cf4186478a04f223 (patch)
treeea757a21051a5140089fd0e206328c567559e8da /content/posts/imagemagick-email.md
parenteab0d3ff03c66cd0f41eab2c84b43089687c96b0 (diff)
add new post, add new pages, move about content to home, and more
Diffstat (limited to 'content/posts/imagemagick-email.md')
-rw-r--r--content/posts/imagemagick-email.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/content/posts/imagemagick-email.md b/content/posts/imagemagick-email.md
new file mode 100644
index 0000000..bbf2621
--- /dev/null
+++ b/content/posts/imagemagick-email.md
@@ -0,0 +1,24 @@
+---
+title: "ImageMagick-powered email image generation"
+date: "2025-06-16"
+---
+
+This is a quick post to show off the email address image shown on the [contact page][contact-email] and how I threw it together.
+
+I wanted to list my email address on my website, but putting it in plaintext can give those LLM scrapers and bots access to it easier. So, I generated an image with ImageMagick to display it.
+
+After cross-referencing some documentation on how to [handle text][magick-text] and [warp the image][magick-warp], I figured out how to do what I wanted. I decided to put it in [my website's Makefile][website-makefile] to make it easier to execute.
+
+...That's pretty much it. Here's the code, though:
+
+```sh
+magick -background transparent -fill "#eeff11" -font "Iosevka" -size 220x60 \
+ -gravity center label:"mail@example.net" -wave -15x150 ./static/img/text.png
+```
+
+Thanks for reading this quick one. Check in later!
+
+[contact-email]: /contact.html#Email
+[magick-text]: https://usage.imagemagick.org/text/
+[magick-warp]: https://usage.imagemagick.org/warping/
+[website-makefile]: https://git.sr.ht/~auroras/www/tree/master/item/Makefile