I had written a little script that asks is the width greater than the height, and made 2 possible answers, so really i asked is the image landscape or portrait, if landscape then width = 800 else is portrait height is = 600.
an issue came about because some images actually enlarged itself to fit the width or height, for example 1 image is 600x500, using my rule it would stretch to 800 width and 667 height (this keeps the proportions together), but as you can see the new height now exceeds 600.
my brain is really battered now and for the life of me i cant think up the pseudo code for it and that's before i even get it into php code.
so would be great if someone out there can help me with this, even if you do not know php or coding, just coming up with a simple formula might be able to help me out, using if then this else that, if you get what i mean
thanks to all in advanced
marky j
an issue came about because some images actually enlarged itself to fit the width or height, for example 1 image is 600x500, using my rule it would stretch to 800 width and 667 height (this keeps the proportions together), but as you can see the new height now exceeds 600.
my brain is really battered now and for the life of me i cant think up the pseudo code for it and that's before i even get it into php code.
so would be great if someone out there can help me with this, even if you do not know php or coding, just coming up with a simple formula might be able to help me out, using if then this else that, if you get what i mean
thanks to all in advanced
marky j