Re: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
Hey Chris, Thanks for replying. Dont worry about it, I got so p*ssed that I just striped the whole thing down to pretty much just the imagecopyresized() function, fiddled around with it to see how it works and got the sh*t working. The good thing now is I understand a bit better how the function

Re: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Chris Dowell
I think you've a couple of problems with your second problem (problem problem problem). First of all, you're setting $dst_h to 0, which gives you a height of 0 - IIRC that's not what you wanted :) You should be setting that $dst_h = 120 as you always want it to be 120px I reckon that your code

RE: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Gryffyn, Trevor
how to best do that. -TG > -Original Message- > From: Mag [mailto:[EMAIL PROTECTED] > Sent: Friday, October 15, 2004 2:00 PM > To: Gryffyn, Trevor > Cc: php php > Subject: RE: [PHP] Advanced maths help (part 2) > > > Hi Trevor, > > Sorry, am just a bit confu

RE: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
EMAIL PROTECTED] > > Sent: Friday, October 15, 2004 12:45 PM > > To: php php > > Subject: [PHP] Advanced maths help (part 2) > > > > > > Hi again guys, :-) > > Thanks to the educated (and excellient) help of > Chris > > and trevor I am now getting propor

RE: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Gryffyn, Trevor
ssing? -TG > -Original Message- > From: Mag [mailto:[EMAIL PROTECTED] > Sent: Friday, October 15, 2004 12:45 PM > To: php php > Subject: [PHP] Advanced maths help (part 2) > > > Hi again guys, :-) > Thanks to the educated (and excellient) help of Chr

[PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
Hi again guys, :-) Thanks to the educated (and excellient) help of Chris and trevor I am now getting proportionate thumbs (which was "problem 1", remember? ) Heres the code that i am using, if it may help anyone else: ** code start ** $src_img = imagecreatefromjpeg("tgp1.jpg"); $img_dim = getima