RE: [PHP] A Question about GD
| From: | Dan Rossi | Date: | Sat, 12 Apr 2003 00:53:39 +0000 |
| Subject: | RE: [PHP] A Question about GD | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143587@lists.php.net to get a copy of this message | ||
sample function
function _resize($new_w,$new_h){
if(function_exists(imagecreatetruecolor)){
if (!$dst_img = @imagecreatetruecolor($new_w,$new_h)) return false;
}else{
if (!$dst_img = @imagecreate($new_w,$new_h)) return false;
}
if (function_exists(imagecopyresampled)){
if
(!@imagecopyresampled($dst_img,$this->imageHandle,0,0,0,0,$new_w,$new_h,$thi
s->image_width,$this->image_height)) return false;
}else{
if
(!@imagecopyresized($dst_img,$this->imageHandle,0,0,0,0,$new_w,$new_h,$this-
>image_width,$this->image_height)) return false;
}
$this->free();
$this->imageHandle = $dst_img;
return true;
}
if gd2 functions use them else use gd1.8 functions
-----Original Message-----
From: Haseeb Iqbal [mailto:webcodder@hotmail.com]
Sent: Saturday, April 12, 2003 6:22 AM
To: php-general@lists.php.net
Subject: [PHP] A Question about GD
hi,
i have using GD2 on my local server but now i want to upload the code to my
client server,the problem is this.i have php 4.3 installed.but my clients
server has php.4.1 with GD1 i have used some features that are only availble
to GD2 what should i do? my client cannot upgrade to php 4.3 for some
reasons. can i copy the GD2.dll to clients system
both server are running win2k
thanx in advance
Haseeb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php