Skip to content

Commit

Permalink
fix image library reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
nosilver4u committed Jan 18, 2022
1 parent 2cda0fe commit f137804
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions classes/class-ewwwio-tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ private function setup_data() {
$data['memory_limit'] = ewwwio_memory_limit();
$data['time_limit'] = (int) ini_get( 'max_execution_time' );
$data['operating_system'] = ewww_image_optimizer_function_exists( 'php_uname' ) ? php_uname( 's' ) : '';
$data['image_library'] = ewww_image_optimizer_gd_support() ? 'gd' : '';
$data['image_library'] = ewww_image_optimizer_imagick_support() ? 'imagick' : '';
$data['image_library'] = ewww_image_optimizer_gmagick_support() ? 'gmagick' : '';

$data['image_library'] = '';
if ( ewww_image_optimizer_gmagick_support() ) {
$data['image_library'] = 'gmagick';
} elseif ( ewww_image_optimizer_imagick_support() ) {
$data['image_library'] = 'imagick';
} elseif ( ewww_image_optimizer_gd_support() ) {
$data['image_library'] = 'gd';
}

$data['cloud_api'] = ewww_image_optimizer_get_option( 'ewww_image_optimizer_cloud_key' ) ? true : false;
$data['keep_metadata'] = ewww_image_optimizer_get_option( 'ewww_image_optimizer_metadata_remove' ) ? false : true;
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ That's not a question, but since I made it up, I'll answer it. See this resource
* fixed: Easy IO misses some image URLs on multi-site when using domain-mapping
* fixed: SVG level cannot be set when using API if svgcleaner was not installed previously
* fixed: Easy IO URL rewriter changing links if they matched a custom upload folder
* fixed: Easy IO incompatible with Toolset Blocks
* fixed: Easy IO incorrectly sizing wide/full width cover blocks
* fixed: SWIS CDN compat called too early in some cases
* removed: PHP 7.1 is no longer supported
Expand Down

0 comments on commit f137804

Please sign in to comment.