Steve,

Glad you got things working :)  Just for the archives, here's a link
to the class I'm using:

http://www.phpclasses.org/browse/package/956.html

Although, I've modified it slightly to add support for gif files back
in and fixed a couple of quirks.  Not sure about the original, but my
modded version requires the GD2 library.  Here it is:

http://php.mechavox.com/class_resize.txt

- Stephen


On Sun, 27 Feb 2005 06:20:58 -0500, steve miller <[EMAIL PROTECTED]> wrote:
> 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.
>

____ • 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: unknown lmsubst tag argument: ''
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