{"id":302,"date":"2005-06-07T20:48:54","date_gmt":"2005-06-07T19:48:54","guid":{"rendered":"\/?p=302"},"modified":"2008-01-01T03:41:02","modified_gmt":"2008-01-01T02:41:02","slug":"gdbook-01-a-free-text-to-image-converter","status":"publish","type":"post","link":"https:\/\/www.tekstadventure.nl\/branko\/blog\/2005\/06\/gdbook-01-a-free-text-to-image-converter","title":{"rendered":"GDBook 0.1, a free text to image converter"},"content":{"rendered":"<p>I hacked together a small text to image converter for converting ebooks. Some devices that can be used as ebook readers will only display images (<a href=\"http:\/\/en.wikipedia.org\/w\/index.php?title=PlayStation_Portable&#038;oldid=14779795\">PSP<\/a>, <a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/2005\/06\/mattels-megacheap-e-book-reader\">Juice Box<\/a>). Although theoretically it is possible to write real ebook reading software for these devices, for now my GDBook program might help.<\/p>\n<p><a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-content\/gdbook.php.txt\">GDBook 0.1 is written in PHP<\/a>, and intended to be run from the command line. It will save image files to your local file system. It does not take arguments: you need to edit the program file to change the settings.<\/p>\n<p>Yes, that&#8217;s rather barbaric, but since I do not own a Juice Box or a PSP, I am not likely to develop this program further. GDBook is GPLed, so please take on its development if you like.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-content\/leacock1.png\" alt=\"[1st page of a Stephen Leacock satire]\" \/> <img decoding=\"async\" src=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-content\/leacock2.png\" alt=\"[Second page of the Leacock story]\" style=\"margin-bottom: 1px;\" \/><\/p>\n<p>Things that I think GDBook does better than <a href=\"http:\/\/www.fumi2kick.com\/jpegbook\/\">the competition<\/a>: <\/p>\n<ul>\n<li>No JPEG<\/li>\n<li>Regular line endings (broken at word boundaries)<\/li>\n<\/ul>\n<p>Things that JPEGBook does better: <\/p>\n<ul>\n<li>Slick interface<\/li>\n<li>Page numbers<\/li>\n<li>Image backgrounds<\/li>\n<\/ul>\n<p>Requirements: <\/p>\n<ul>\n<li>A text editor<\/li>\n<li><a href=\"http:\/\/www.php.net\">PHP<\/a><\/li>\n<li><a href=\"http:\/\/www.boutell.com\/gd\/\">GDLib<\/a><\/li>\n<\/ul>\n<p>GDLib comes standard with the MS Windows binaries for PHP, but is not installed. The GDLib web site explains how to install it. Keep in mind that the extension name in the php.ini file should be the same as in your extensions directory: on my system the two differed. <\/p>\n<p>Known bug: when a paragraph ends in a wide line, some of the text may spill over the border and even off the page.<\/p>\n<p>The text that is used in the current configuration is <a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-content\/leacock.txt\">The War Sacrifices of Mr. Spugg<\/a> (also as <a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-content\/leacock.html\">readable HTML version<\/a>) by <a href=\"http:\/\/www.gutenberg.org\/etext\/4781\">Stephen Leacock<\/a>. Worth reading even if you have no need for the program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hacked together a small text to image converter for converting ebooks. Some devices that can be used as ebook readers will only display images (PSP, Juice Box). Although theoretically it is possible to write real ebook reading software for these devices, for now my GDBook program might help. GDBook 0.1 is written in PHP, &#8230; <a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/2005\/06\/gdbook-01-a-free-text-to-image-converter\" class=\"excerpt-read-more read-more\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-project-gutenberg"],"_links":{"self":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":0,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}