Resize, create thumb and rename

Last post 08-05-2009, 10:04 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  08-04-2009, 5:41 PM 54485

    Resize, create thumb and rename

    I've been running a simple php script that resizes, renames, and creates a thumb for all photos uploaded to our company website.  The volume of photos have increased and I was tasked with finding a way to select groups of photos and upload them all at once, so I purchased this PHP Uploader script.  It really works well, but I still need the other funtions.  Can anyone help.
    1. rename my photo
    2. resize my photo to a width of 500 pixels (length will be automatic based on the aspect ratio)
    3. create thumb of the photo that is named "XXXX_thumb.jpg"  - 50px wide
  •  08-05-2009, 10:04 PM 54537 in reply to 54485

    Re: Resize, create thumb and rename

    Hi,
     
    please check the misc-filemanager-handler.php example , this line tell you how to rename the file :
     
    rename($mvcfile->FilePath,$newpath);
     
    for the photo operation , I suggest you use some library like the http://www.libgd.org/Main_Page
     
    Regards,
    Terry
     
View as RSS news feed in XML