From 85297207b49badcb30bcf090a2aa210183a79a84 Mon Sep 17 00:00:00 2001 From: pp Date: Tue, 14 Jun 2005 12:09:34 +0000 Subject: - small changes in documentation git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@192 455248ca-bdda-0310-9134-f4ebb693071a --- README | 42 ++++++++++++++---------------------------- TODO | 1 - config.m4 | 1 + docs/api.txt | 2 +- 4 files changed, 16 insertions(+), 30 deletions(-) diff --git a/README b/README index 097905d..9dd97b0 100644 --- a/README +++ b/README @@ -2,35 +2,21 @@ PHP Imlib2 Extension (php_imlib) ================================ This extension, as one might expect, provides access to Rasterman's -excellent image library, Imlib2. The extension is coming together fairly -well, with probably four fifths of the Imlib2 API ported which I've been -aiming for (There are parts of Imlib2 used specifically for X applications, -which of course, we don't need in a PHP extension). See "About php_imlib" -below and the contents of the docs directory for more information on the -extension. +excellent image library, Imlib2. Requirements ------------ -See INSTALL for where to get the required libraries. Imlib2, freetype, -libjpeg, and libpng should work on most Unices, I don't know how portable -edb is. +Current version of php-imlib has been tested with: -Briefly, the requirements are: - -A Unix or Linux OS -PHP >= 4.0.1 (4.0.4 recommended) -Imlib2 >= 1.0.0 -edb >= 1.0 -freetype >= 1.3.1 -libjpeg -libpng - - -What's Wrong With GD? ---------------------- -There's nothing wrong with GD, I just wanted an alternative. Aside from -that, Imlib2 is a faster, more powerful library. +PHP-5.0.3 +Imlib2-1.1.2 +freetype-2.1.7 +t1lib-5.0.2-1 +libjpeg-6b +libpng-1.2.8 +libtiff-3.7.1 +libungif-4.1.3 Caveats @@ -60,7 +46,8 @@ version 0.1. However as I developed 0.2, that clearly became insufficent. So, starting with 0.2 I've included a handful of more reasonably sized classes that spread things out nicely. I'm fairly pleased with how they've turned out, but as always, feedback is encouraged. More extensive documentation on -the classes is available in the phpdoc directory. +the classes is available in the phpdoc directory. ( Note: classes are +currently outdated. Any volunteers for making them up to date? ) In the first release, I had also included an abstract image class that allowed the use of GD and php_imlib with the same code. At least for the @@ -72,7 +59,6 @@ around. So, I filed that one away under "bad idea". Function Reference ------------------ The extension functions are covered in docs/api.txt, the class files are -covered in the phpdoc directory (html only). Both are available online: +covered in the phpdoc directory (html only). -http://mmcc.cx/php_imlib/documentation.php -http://mmcc.cx/php_imlib/phpdoc/ +There are some examples online at http://pp.siedziba.pl/imlib_examples diff --git a/TODO b/TODO index fb6e1e3..0000ce6 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ * fix autoconf * update documentation, examples and PHP classes -* investigate changes needed for PHP5 * thread-safety? \ No newline at end of file diff --git a/config.m4 b/config.m4 index 1fa4c50..3befe3a 100644 --- a/config.m4 +++ b/config.m4 @@ -45,6 +45,7 @@ if test "$PHP_IMLIB" != "no"; then -L$IMLIB_T1_DIR/lib ]) fi + PHP_ADD_LIBRARY_WITH_PATH(ltdl, /usr/lib, IMLIB_SHARED_LIBADD) PHP_SUBST(IMLIB_SHARED_LIBADD) PHP_NEW_EXTENSION(imlib, php_imlib.c, $ext_shared) fi diff --git a/docs/api.txt b/docs/api.txt index cdbe9c2..942e00f 100644 --- a/docs/api.txt +++ b/docs/api.txt @@ -280,7 +280,7 @@ void imlib_get_text_size(int font, string str, int &w, int &h, int array imlib_list_fonts() Return an array of all the fonts available in the font path -int imlib_load_font(string fontname[, string encoding]) +int imlib_load_font(string fontname) Load a font void imlib_text_draw(int img, int font, int x, int y, string str, int -- cgit v1.2.3