News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Cory Borrow's Blog:
Creating thumbs from textfiles with PHP and GD
0 comments :: posted Wednesday January 16, 2008 @ 12:50:00
voice your opinion now!

Cory Borrow has posted a tutorial he's created to show how to harness the power of PHP and GD to create thumbnail images out of the contents of a text file.

Today, I'll give a little info on how to achieve the process of creating a thumbnail using PHP, GD and the text from a text file. It is really pretty simple, so lets get started.

The trick behind the translation is in reading in the contents of the (plain) text file and pushing it into a string value of a newly created GD-generated image. He includes the code to make using it in your own app simple (a cut and paste version) - his method FileToThumb.

tagged with: thumbnail image gd tutorial text file contents thumbnail image gd tutorial text file contents



security package database cakephp pecl conference zendframework zend application ajax framework releases developer mysql code PEAR PHP5 release job book

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework