SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Image Resize

  1. #1
    SitePoint Zealot
    Join Date
    Oct 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Resize

    Hi all,

    Does anyone know any javascript which will resize an image so that the width of the image is 150px but the ratio still stays the same so the image is not squashed.

    Thanks in advanced

  2. #2
    SitePoint Member
    Join Date
    Feb 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just use the free program ifranview- it is easy to use and resizes images with proportions in tact. Just google for it.

    MRRB
    From the Developers of the "Resell Flipping"
    Concept for Profits, that's sweeping
    across the internet like wildfire!
    http://masterresellrightsblowout.com/v2

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    100 Post(s)
    Tagged
    4 Thread(s)
    If you set the width of an image without setting the height, the browser should maintain the image aspect ratio
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •