Stretching images using php/resizing in php,javascript and maybe css

Hi all,

I have a Question i have a template and i also have a php file which basically just displays template the database,

but what i am wanting to do is have some sort of php code,css or javascript code to check if the content goes over the border lines of the certain area and if its is go over calculate it by how many pixels and then save that as the normal size of an image without having to go on to photoshop and doing it manually opening file and saving it as 3 different times for 6 different pages or watever, as it used to get the website nice and tidy,

Does anyone know how i can do this and achieve this with a dynamic tempalte reader that reads the content checks to see if the content goes over the border line and then set the new max height to the certain height of the page for that specific page and if the page is on say the welcome index page it remains the normal height of say 700px on the height,

Can anyone help me with this?

Thanks,William

You’d have to build something which checks your overflowing on the clientside using Javascript, posting it back to PHP, which then modifies the image. PHP does not care about browsers, it does not know how your content flows in your divs etc.

Non-trivial to implement, I’m afraid.

Easier is to use CSS/ JS on the client side to resize your content so it fits.

You’re confusing AnthonySterling.