Convert Text files to Image format with pango-view
.
I just had an idea and it works pretty well. How about showing text file content in the thumbnail area, instead images? The “problem” I had is, that I have tons and tons of Romhacks and Mods. But they lack screenshots (I really should have saved them too). And thus it is a bit difficult to identify what the Mod is all about, other than the filename.
Luckily I saved a text file with information about the particular version of the Romhack alongside the patched Rom. Wouldn’t it be neat to show that text file? Besides, those information are far more valuable than any screenshot in my opinion, especially when it comes to Romhacks, as they often make non visible changes to gameplay too. RetroArch can only show images, so we need to get creative.
I simply converted each text file to an image and put them to a directory with same name as the playlist; in my case “RetroArch” > “thumbnails” > “Nintendo - Super Nintendo Entertainment System - Mods” > “Named_Boxarts” . For that I used a tool called pango-view
on the terminal and wrote a simple Bash script. If anyone understands Windows commandline, it would be nice if you share your version of it too.
#!/usr/bin/env bash
# Convert Text files to Image format.
#
# Usage:
# txt2png desc1.txt desc2.txt
# txt2png *.txt
for file in "${@}"; do
pango-view \
--font mono \
--no-display \
--width 320 \
--height 480 \
--output "${file%.txt}.png" \
-- "${file}"
done
And it will generate a .png file for each .txt file. If you have customized options, would be nice if you share it with a screenshot how it looks. At the moment I am currently unsure what settings to use and will probably make adjustments over time.
BTW, this could be used alongside screenshots, for any other game too (not only for Mods and Romhacks). On PC with the Right bottom Shift-key Boxarts can be toggled in the GUI of RetroArch.