Results 1 to 3 of 3

Thread: PHP Image Resizer

  1. #1
    Join Date
    Dec 2008
    Posts
    28
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default PHP Image Resizer

    I know that there are functions in php that can resize an image for you; but im question, is it possible to give them a custom url.

    by a custom url, i mean;

    /images/s_6150fe1520c8bfd556c5213448aadc57.gif (small size)
    /images/l_6150fe1520c8bfd556c5213448aadc57.gif (large size)

    something on the lines of those. ^

    different letters in the beginning for all of the different sizes.

    any experience? or know if its possible?

  2. #2
    Join Date
    Sep 2008
    Posts
    56
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re:- PHP Image Resizer

    Hi,
    You will be using the functions of the GD Libraries of PHP to image resizing, actually when you say that you are resizing an image it means you are creating one and at that point of time instead of just displaying the resized image on the screen you can as well save it and while doing this you can follow whatever convention you want for naming it and saving it in whatever folder you want, thus have a custom URL for each image being generated.

    Hope this helps.

    Cheers,
    ~Maneet

  3. #3
    Join Date
    Apr 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is what my answer is...
    You can give them an URL if you save the image in ur server after resizing it

    Otherwise, You can do the folowing...

    You simply create a unique ID for each image

    Then you create one page which has all the codes

    Therefore,

    Lets say your site is http://www.example.com
    And the page is /user/

    So, this link
    http://www.example.com/user/?ID=7663
    Will open the resized image no. 7663

    Obviously, you need to use like mySQL for all that stuff

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
  •