Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2628124
D25515.1732015899.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
879 B
Referenced Files
None
Subscribers
None
D25515.1732015899.diff
View Options
diff --git a/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php b/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
--- a/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
+++ b/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
@@ -98,6 +98,14 @@
}
private function composeImage($color, $icon) {
+ // If we don't have the GD extension installed, just return a static
+ // default project image rather than trying to compose one.
+ if (!function_exists('imagecreatefromstring')) {
+ $root = dirname(phutil_get_library_root('phabricator'));
+ $default_path = $root.'/resources/builtin/profile.png';
+ return Filesystem::readFile($default_path);
+ }
+
$color_map = self::getAllColors();
$color = idx($color_map, $color);
if (!$color) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 11:31 (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
977587
Default Alt Text
D25515.1732015899.diff (879 B)
Attached To
Mode
D25515: Avoid exception setting project profile image when GD not installed
Attached
Detach File
Event Timeline
Log In to Comment