Re: [PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-02 Thread Chris
BBC wrote: Did you check if you had the required "gd" extension? I believe someone already told you and how to check. Sorry I resent my question unintentionally I believe no one did. Then you didn't look hard enough. btw, what is GD extension, and how to install or load it? I have read my '

Re: [PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-02 Thread BBC
> Did you check if you had the required "gd" extension? I believe someone already told you and how to check. Sorry I resent my question unintentionally I believe no one did. btw, what is GD extension, and how to install or load it? I have read my 'php.ini', and then I found this: ;extension=php_gd

Re: [PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-01 Thread tedd
At 4:15 PM -0700 7/1/06, BBC wrote: >I thought I have typed this function correctly, and I didn't know why my >browser couldn't run these script : >$filename = 'test.jpg'; >$percent = 0.5; >header('Content-type: image/jpeg'); >list($width, $height) = getimagesize($filename); >$newwidth = $width * $

[PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-01 Thread BBC
I thought I have typed this function correctly, and I didn't know why my browser couldn't run these script : and the error output is : "call to undefined function" btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not run those script? So, what is the best solution for my pro

Re: [PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-01 Thread chris smith
On 7/1/06, BBC <[EMAIL PROTECTED]> wrote: I thought I have typed this function correctly, and I didn't know why my browser couldn't run these script : and the error output is : "call to undefined function" btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not run those scri

[PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-01 Thread BBC
I thought I have typed this function correctly, and I didn't know why my browser couldn't run these script : and the error output is : "call to undefined function" btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not run those script? So, what is the best solution for my pro

Re: [PHP] ImageCopyResized() function

2006-06-18 Thread Robert Cummings
On Sun, 2006-06-18 at 12:02, BBC wrote: > Hi all. > is any one know how to use these functions, and what for are they: > imagecreatetruecolor(); > imagecreatefromjpeg(); > ImageCopyResized(); > ImageDestroy(); I know how to use them all. I learned by reading here: http://ca.php.net/manual/en/

Re: [PHP] ImageCopyResized() function

2006-06-18 Thread Rabin Vincent
On 6/18/06, BBC <[EMAIL PROTECTED]> wrote: is any one know how to use these functions, and what for are they: imagecreatetruecolor(); imagecreatefromjpeg(); ImageCopyResized(); ImageDestroy(); php.net/imagecreatetruecolor php.net/imagecreatefromjpeg php.net/imagecopyresized php.net/imagedestroy

[PHP] ImageCopyResized() function

2006-06-18 Thread BBC
Hi all. is any one know how to use these functions, and what for are they: imagecreatetruecolor(); imagecreatefromjpeg(); ImageCopyResized(); ImageDestroy(); please tell me how to use it like this function mail($a,$b,$c,$d); $a = "email direction where we email to"; $b = "subject of email, it will

Re: [PHP] ImageCopyResized() function

2006-06-18 Thread Jochem Maas
BBC wrote: > Hi all. > is any one know how to use these functions, and what for are they: > imagecreatetruecolor(); > imagecreatefromjpeg(); creating image resource. > ImageCopyResized(); copy and resize image resource. > ImageDestroy(); destroy image resource. RTFM: http://php.net/gd > >

[PHP] ImageCopyResized() function

2006-06-18 Thread BBC
Hi all. is any one know how to use these functions, and what for are they: imagecreatetruecolor(); imagecreatefromjpeg(); ImageCopyResized(); ImageDestroy(); Best regard BBC

Re: [PHP] imagecopyresized just copies

2005-11-20 Thread Curt Zirzow
On Sun, Nov 20, 2005 at 05:14:08PM +0100, Andy Pieters wrote: > Hi all > > I wanted to make a simple script to make a resized image from an uploaded one. > > I used the example found on the php.net website > > ... >{imagecopyresized($thumb,$main,0,0,0,0,$newwidth,$newheight,$width, > $height

Re: [PHP] imagecopyresized just copies

2005-11-20 Thread Andy Pieters
On Sunday 20 November 2005 17:14, Andy Pieters wrote: > {case 1: > imagegif($main,$thumbname); > > break; >

[PHP] imagecopyresized just copies

2005-11-20 Thread Andy Pieters
Hi all I wanted to make a simple script to make a resized image from an uploaded one. I used the example found on the php.net website list($width,$height,$type)=getimagesize($newfile);

Re: [PHP] ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jason Wong
On Saturday 10 July 2004 06:38, Jough P wrote: > Greetings all, I have a real simple function. I works well on JPG > images but ImageCopyResized(), or ImagePNG() doesn't seem to be > working. When I view the uploaded file it is still it's original size. > Here is the function. I hope someone c

[PHP] ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
Greetings all, I have a real simple function. I works well on JPG images but ImageCopyResized(), or ImagePNG() doesn't seem to be working. When I view the uploaded file it is still it's original size. Here is the function. I hope someone can help me, I'm pretty stumped. function transfor

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: > sorry.i included the link so you can see the result > it's difficult to explain what it looks like without including > attachments - which is a worse idea i think! > there are no errors it just looks bad. > i didn't know that imagecreate() pro

Re: [PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
ions of gd (< 2.x) you can't manipulate jpegs? gd is my only option. adrian - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 6:26 PM Subject: Re: [PHP] imagecopyresized > On Tuesday 26 N

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: > hi > i'm having problems resizing jpegs. > here's an e.g. using manual example. > code used : > $new_w=395; > $new_h=297; > header("Content-type: image/jpeg"); > $dst_img=ImageCreate($new_w,$new_h); > $src_img=ImageCreateFromJpeg($name); > >

Re: [PHP] imagecopyresized

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 02:10, [EMAIL PROTECTED] wrote: > hi > i'm having problems resizing jpegs. > here's an e.g. using manual example. > code used : > $new_w=395; > $new_h=297; > header("Content-type: image/jpeg"); > $dst_img=ImageCreate($new_w,$new_h); > $src_img=ImageCreateFromJpeg($name)

[PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : and the result can be seen here. http://www.sitestogo.biz/temp/test.php i'm wondering if it's to do with the gd library installed.

RE: [PHP] imagecopyresized problems

2002-09-09 Thread joakim . andersson
Hi, > imagejpeg($dst_img); This actually outputs the image, so your result is not unexpected. Try this instead: imagejpeg($dst_img, "/path/and/filename/to/newfile.jpg"); Regards Joakim Andersson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] imagecopyresized problems

2002-09-07 Thread Brian & Shannon Windsor
I'm trying to use imagecopyresized to generate a thumbnail image and then store the image in the proper place, but I'm running into some problems. I'm using the standard code: $src_img = imagecreatefromjpeg("../php/images/".$HTTP_POST_FILES['imagefile']['name']); if (imagesx($src_img)<$max_widt

RE: [PHP] imagecopyresized() problems

2002-07-09 Thread joakim . andersson
It gives much better quality. Then to output the image from another script (not within test.php) use this: Regards Joakim Andersson > -Original Message- > From: Lance Earl [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 8:54 AM > To: [EMAIL PROTECTED] > Subject

[PHP] imagecopyresized() problems

2002-07-08 Thread Lance Earl
I am trying to create a piece of code that will create and display thumbnail image. When trying to send the image to a browser, I see binary data rather then an image. You can see the problem at www.dallypost.com/a/test.php The troubled cose for this page follows: "); if(file_exists($master_ima

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread hugh danaher
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 24, 2002 3:57 AM Subject: [PHP] imagecopyresized() problems > Hi, > > I am trying to copy and resize an image using imagecopyresized() and > cannot seem to crack it. Below is the code I am using, can anyone tel

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 18:57, Phil Ewington wrote: > Hi, > > I am trying to copy and resize an image using imagecopyresized() and > cannot seem to crack it. Below is the code I am using, can anyone tell > me why I keep getting and invalid image resource warning and is this > the src or dest parame

[PHP] imagecopyresized() problems

2002-06-24 Thread Phil Ewington
Hi, I am trying to copy and resize an image using imagecopyresized() and cannot seem to crack it. Below is the code I am using, can anyone tell me why I keep getting and invalid image resource warning and is this the src or dest parameter that the error is referring to? $srcImageName = "../pr