The upload script is for a family website I put together. It lets other family members add photos, and I can't really control the original width and height of the photos they submit, only the type and overall file size. I basically need the script to resize the pictures below a certain height and width when they are uploaded, or displayed. Using size attributes within the img tag doesnt always keep the size ratio of the picture, therefore the resize is a necessity.