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

2004-10-15 Thread Gryffyn, Trevor
My interpretation of Problem 2 before was that you wanted to get a 120w x 90h (?) section of the original image, not of the thumbnail you generated by resizing 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?

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

2004-10-15 Thread Mag
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...understanding the way the script is written is a little frustrating as it was written for something else and I am trying to adopt it. if you want to try your

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