getStandardImage();
}
+if(!extension_loaded('gd') || !function_exists('gd_info')) {
+ OCP\Util::writeLog('contacts','photo.php. GD module not installed',OCP\Util::DEBUG);
+ getStandardImage();
+}
+
$contact = OC_Contacts_App::getContactVCard($id);
$image = new OC_Image();
if(!$image) {
OCP\Response::redirect(OCP\Util::imagePath('contacts', 'person.png'));
}
-if(!function_exists('imagecreatefromjpeg')) {
+if(!extension_loaded('gd') || !function_exists('gd_info')) {
OCP\Util::writeLog('contacts','thumbnail.php. GD module not installed',OCP\Util::DEBUG);
getStandardImage();
exit();