diff --git a/includes/Classifai/Command/ClassifaiCommand.php b/includes/Classifai/Command/ClassifaiCommand.php index fcc842bd4..0f37e7e21 100644 --- a/includes/Classifai/Command/ClassifaiCommand.php +++ b/includes/Classifai/Command/ClassifaiCommand.php @@ -265,7 +265,9 @@ public function image( $args = [], $opts = [] ) { $progress_bar->tick(); $current_meta = wp_get_attachment_metadata( $attachment_id ); + \WP_CLI::line( 'Processing ' . $attachment_id ); $classifier->generate_image_alt_tags( $current_meta, $attachment_id ); + $classifier->smart_crop_image( $current_meta, $attachment_id ); } $progress_bar->finish();