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 =
?
-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
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
: 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
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
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
6 matches
Mail list logo