Skip to content

Commit

Permalink
Merge pull request #134 from adamsilverstein/add/image-support-checks
Browse files Browse the repository at this point in the history
Environment: check GD and Imagick availability & supported formats.
  • Loading branch information
javiercasares committed Feb 7, 2024
2 parents fbd384e + 965d2bf commit fb00cbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ function get_env_details() {
$env = array(
'php_version' => phpversion(),
'php_modules' => array(),
'gd_info' => extension_loaded( 'gd' ) ? gd_info() : array(),
'imagick_info' => extension_loaded( 'imagick' ) ? Imagick::queryFormats() : array(),
'system_utils' => array(),
'mysql_version' => trim( shell_exec( 'mysql --version' ) ),
'os_name' => trim( shell_exec( 'uname -s' ) ),
Expand Down
2 changes: 2 additions & 0 deletions prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
\$env = array(
'php_version' => phpversion(),
'php_modules' => array(),
'gd_info' => extension_loaded( 'gd' ) ? gd_info() : array(),
'imagick_info' => extension_loaded( 'imagick' ) ? Imagick::queryFormats() : array(),
'system_utils' => array(),
'mysql_version' => trim( shell_exec( 'mysql --version' ) ),
'os_name' => trim( shell_exec( 'uname -s' ) ),
Expand Down

0 comments on commit fb00cbe

Please sign in to comment.