Skip to content

Commit

Permalink
fix: keep current behavior of image command
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu committed Oct 28, 2020
1 parent f68f047 commit 25bb9c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/Classifai/Command/ClassifaiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 25bb9c7

Please sign in to comment.