Upload and Resize Files

Used to upload and resize files…when WordPress is not around to make my life easier. Would also suggest plupload if you need something similar and want an AJAX solution.

Was used to create 2 baby pictures from one original source file.

Source: http://www.9lessons.info/2009/03/upload-and-resize-image-with-php.html

Note: Includes a function get the image extension.