private function getSize($image, $imageData) { $size = N2Parse::parse($imageData['desktop']['size']); if ($size[0] > 0 && $size[1] > 0) { return $size; } else { list($width, $height) = @getimagesize($image); if ($width != null && $height != null) { $imageData['desktop']['size'] = $width . '|*|' . $height; N2ImageManager::setImageData($image, $imageData); return array($width, $height); } } return null; }