A little function I created to read the dimensions (width, height) of an Adobe Photoshop image, or PSD. PSDs exported by third-party programs normally don't have the required
embedded tags to be read. If the file is unparsable, the function returns null. If it can, however, it returns an array with the width at index 0 and the height at index 1.