Zend - The PHP Company




Code Gallery: bcreavis


PSD Dimensions Reader Function  

Type: code fragment
Added by: bcreavis
Entered: 13/11/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 1739
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.




Search