Results 1 to 2 of 2

Thread: resizing picture

  1. #1
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default resizing picture

    i need help in resizing pictures...
    i ,made a PHP script which resizes user uploaded images.....

    when the picture is uploaded the it is shown on page by the size 100 x 150. but sometime user upload larger pictures and some time smaller pictures...

    what i want , when user uploads larger pictures the picture should be resized to 100 x 150, but it must be in the same ratio as the user uploads ...


    i.e. if user uploads picture 200 x 400 it must be resized in the same ratio

    can any1 help?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Look at php.net:
    http://www.php.net/manual/en/functio...opyresized.php

    Look through some of the comments.
    For example,
    http://www.php.net/manual/en/functio...ized.php#68631

    This is a common question, so try a search first.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •