Jump to content

Archived

This topic is now archived and is closed to further replies.

Immortal55

"Temporary" image sizes..?

Recommended Posts

Would it be possible to resize an image to fit a page temporarily? So if an image is uploaded, and its dimensions are large, I can just do

<img src="image.jpg" width="PHPcreateddimension" height="PHPcreateddimension">

Is this possible? I do not want to have to create a new image I just want it to size the image.

Share this post


Link to post
Share on other sites
I have written a function within my upload class that resamples images above a certain size and creates a whole nedw image based on teh original - but smaller.

You need to look at the gd functions in the manual to do this.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.