Php Getimagesize

list($width, $height, $type, $attr) = getimagesize($imagesrc);

Returns a array with 4 elements. The 0 index is the width of the image in pixels. The 1 index is the height of the image in pixels. The 2 index is a flag for the image type:

1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(orden de bytes intel), 8 = TIFF(orden de bytes motorola), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM.

The 3 index contains ' height="yyy" width="xxx" '

누구나 수정하실 수 있습니다. 위키 사용법 참고하세요.