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
7 matches
Mail list logo