SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    phpthumb - image scaling based on width

    Hiya Guys,

    I am displaying an image using phpthumb and would like to scale the height based on whatever the width is. I thought that it did it automatically if you only enter the width as a parameter and not the height but this doesn't seem to be the case. If I enter the height however, the width is scaled properly. Does anyone know of any option that I need to change in the config so that I can just enter the width to scale the height?

    Why: I need to scale based on the width because my web page can go on as long as it likes and the other divs will just float under the image anyways, but I need to have a set width so that it doesn't mess up content beside the image.

    Thanks in advance
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  2. #2
    SitePoint Zealot
    Join Date
    Jan 2007
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Incase you are still wondering I have been using php thumb today and it does scale images just by the width, are you using an old version?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •