Jump to content


"Temporary" image sizes..?

  • Please log in to reply
1 reply to this topic

#1 Immortal55

  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 09 April 2006 - 03:30 PM

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.

#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 09 April 2006 - 04:06 PM

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.
follow me on twitter @PHPsycho

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users