This builds on Soupnazi's original NFO plugin idea
After failing to get that to work reliably on all browsers and operating systems (due to character-set and formatting issues) I decided to write this which renders and then displays NFOs as images
It uses a pre-rendered version of an original fixed-pitch CGA 8 x 8 pixel character set (code page 437) and an EGA 9 x 8 pixel version is also included - Extra character sets can be added by creating additional pre-rendered images (see config.php for more info)
The image format (PNG/GIF/JPEG) and the display colours (full RGB) are configurable (Again see config.php for more info)
Requires PHP 5 and GD 1.8 or later (or 2.0.28 if using GIF support)
It's available for download here - http://kitty-kode.com/kode/rutorrent/plugins/nfo_img.tar.gz
One thing I haven't managed but which I would like is to be able to make the image right-clickable so it can be 'Saved as' - Is this possible? If so how do I accomplish it with JS and the RuTorrent code?
Oh - And if anyone wants to translate the language files I'll update the archive
Version history/Changelog -
1.0 - Initial release
1.1 - Added 'Save Image...' button
1.2 - Fixed the path in get_img
2011-05-02 - Updated archive with ES translation (thanks Xenus!)
After failing to get that to work reliably on all browsers and operating systems (due to character-set and formatting issues) I decided to write this which renders and then displays NFOs as images
It uses a pre-rendered version of an original fixed-pitch CGA 8 x 8 pixel character set (code page 437) and an EGA 9 x 8 pixel version is also included - Extra character sets can be added by creating additional pre-rendered images (see config.php for more info)
The image format (PNG/GIF/JPEG) and the display colours (full RGB) are configurable (Again see config.php for more info)
Requires PHP 5 and GD 1.8 or later (or 2.0.28 if using GIF support)
It's available for download here - http://kitty-kode.com/kode/rutorrent/plugins/nfo_img.tar.gz
One thing I haven't managed but which I would like is to be able to make the image right-clickable so it can be 'Saved as' - Is this possible? If so how do I accomplish it with JS and the RuTorrent code?
Oh - And if anyone wants to translate the language files I'll update the archive
Version history/Changelog -
1.0 - Initial release
1.1 - Added 'Save Image...' button
1.2 - Fixed the path in get_img
2011-05-02 - Updated archive with ES translation (thanks Xenus!)