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 * $

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

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

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 > >

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; >

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

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)

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.

RE: [PHP] imagecopyresized() problems

2002-07-09 Thread joakim . andersson
Hi, Output the correct headers before you output the image ie header("Content-type: image/jpeg"); imagejpeg($dst_img, '', 50); Remove all print statements from this code. You cannot output anything but the headers and the image itself. Use imagecopyresampled if you can. It gives much better q

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread hugh danaher
Don't know if this helps, but the following works on my system. Hugh $width) { $nheight=$max; $nwidth=$width/($height/$max); } else { $nwidth=$max; $nheight=$height/($width/$max); } //header("content-type: image/jpeg"); $image=imagecreatefromjpeg($picture); $image1=imagecreate($nwidth,$

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