New functions to php Image Functions (gd.c)
| From: | Denis Gasparin | Date: | Mon, 08 Jan 2001 15:23:49 +0000 |
| Subject: | New functions to php Image Functions (gd.c) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43388@lists.php.net to get a copy of this message | ||
Hi, my name is Denis Gasparin.
I'm a student of computational engineering at the University of Padua (Italy).
I'm developing a project for my thesis that uses the php image functions. Because I needed some functions that were too slow if they were written in Php, I wrote them in C and inserted them in the gd.c .
These functions are two (actually one that is called by the two):
JpegToWbmp( str jpegfile, str wbmpfile, int resize_width, int resize_heigth, int contrast)
PngToWbmp( str pngfile, str wbmpfile, int resize_width, int resize_heigth, int contrast)
They performs the conversion of a graphic file (Jpeg and Png) to the wbmp format using the GD library functions.
The conversion (of the size) is done without stretching the image. The contrast parameter is a value between 0 and 8 needed to convert the image from color to black&white only.
If you want these functions included in the Php Image functions in the next Php distribution, i'm ready to give you the source code of these functions.
I have also found a bug in the ImageWBMP function and I have corrected it...
Let me know,
Denis Gasparin
denis@edinet.it