Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post

    Image Upload and Resize (several times!)

    1. I need a script that allows me to upload an image into a folder (originals). The file name will be automatically generated by my script.

    2. The image needs to then be resized to 800x600 (wxh) and saved into a different folder (large) with the same file name as the originals one.

    3. The image needs to then be resized to 400x300 (wxh) and saved into a different folder (medium) with the same file name as the other two.

    4. The image needs to then be resized to 200x150 (wxh) and saved into a different folder (small) with the same file name as the other three.

    Please note, the respective widths and heights are being calculated, but those figures are the bounding boxes (if you like!!).

    I have step 1 working beautifully - it works a treat. The file types that I am currently accepting for upload are jpg/jpeg/png/gif.

    I am really struggling with steps 2 through 4 and just cant make the damned thing work!!

    Any help would be great!

    Cheers

    The Moose

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    I am really struggling with steps 2 through 4 and just cant make the damned thing work!!

    Any help would be great!
    You may better to post a single issue at a time, along with the code that you've tried.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post
    Quote Originally Posted by abduraooft View Post
    You may better to post a single issue at a time, along with the code that you've tried.
    I posted them like that above as they are basically the same issue.

    Once it works for one, I assume I will just replace the figures for the other 2.

    Cheers

    The Moose

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    This could have been googled, really.

    From the first hit on my google search:
    http://www.theopensurgery.com/29/php...-image-script/
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Rowsdower! View Post
    This could have been googled, really.

    From the first hit on my google search:
    http://www.theopensurgery.com/29/php...-image-script/
    I had found that script and found that it didn't seem to flow/follow...or am I missing something??

    Cheers

    The Moose


  •  

    Posting Permissions

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