Hi,
I really like your little tool, and I'm surprised that a shell script is sufficient for that (with help of ImageMagick).
I'd like you to consider adding hyperlink (OSC 8) support so the generated previews are clickable. This would be a great addition, what do you think?