[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 =

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

2004-10-15 Thread Gryffyn, Trevor
? -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 Chris and trevor I am now getting proportionate thumbs

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

2004-10-15 Thread Mag
the original. You seem to be working off of the adjusted height. Sorry, I didn't noodle all the way through this one, what I am missing? -TG -Original Message- From: Mag [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 12:45 PM To: php php Subject: [PHP] Advanced maths

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

2004-10-15 Thread Gryffyn, Trevor
: 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 confused myself mostly because I am using a third party script to clip the 120x90 part out of the image

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 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