Hi Stephen.

This is the portion of the script that I have been using:

$newheight = $height * $ratio;
if(function_exists("imagecopyresampled")){
$newim = imagecreatetruesize($newwidth, $newheight);
imagecopyresampled($newim, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
}else{
$newim = imagecreate($newwidth, $newheight);
imagecopyresized($newim, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
}



This IS working on the same webserver in one directory, but the same is not working in another. It is an old script that I got from phpgarage.com. Weird.
Anyway, I would love to see a copy of yours, but I did not see your email. Mine is [EMAIL PROTECTED]


Thanks!




On Feb 26, 2005, at 9:44 PM, Stephen Caudill wrote:

I think you might be looking for:

imagecreatetruecolor
http://us3.php.net/manual/en/function.imagecreatetruecolor.php

rather than imagecreatetruesize...  Worth a try anyhow.  If you
continue to have trouble with it, email me offlist and I'll send you
my PHP image resize script.

- Stephen



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to