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 '
> 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
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 * $
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
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
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
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/
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
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
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
>
>
Hi all.
is any one know how to use these functions, and what for are they:
imagecreatetruecolor();
imagecreatefromjpeg();
ImageCopyResized();
ImageDestroy();
Best regard
BBC
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
On Sunday 20 November 2005 17:14, Andy Pieters wrote:
> {case 1:
> imagegif($main,$thumbname);
>
> break;
>
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);
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
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
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
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
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);
>
>
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)
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.
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.
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
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
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
<[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
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
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
28 matches
Mail list logo