blob: bbf26212abd18a4f7bbed5430ba4d5eacea2609d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|