/** * @param File $file * @param string $path Unused * @param bool|array $metadata * @return array */ function getImageSize($file, $path, $metadata = false) { $path = PDBHandlerUtils::getRasterizedFilePath($path); if ($path == false) { return array(0, 0, 'PDB', 'width="0" height="0"'); } list($width, $height) = getimagesize($path); return array($width, $height, 'PDB', sprintf('width="%d" height="%d"', $width, $height)); }
private function doCheck() { $input = PDBHANDLER_TEST_FILE; $output = preg_replace('/\\.pdb$/', '', PDBHANDLER_TEST_FILE) . '.png'; PDBHandlerUtils::convertToPNG($input, $output); }