Reduce Image File Size
This script saves an uploaded image to a directory called media/images with a file name of file.ext where ext stands for whatever file extension the uploaded image had originally. It also saves a version of the image with dimensions (ie width and height) 10 times smaller than the original. This is saved in the same directory with the name file-small.ext. Confusingly the original version is then displayed as a thumbnail (width: 15%) and the 1/10th size version is displayed at its full size so it actually appears bigger than the original.