Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions inc/url_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ private function normalize_image( $url, $original_url, $args, $is_uploaded = fal

if ( ! empty( $args['resize'] ) ) {
$this->apply_resize( $image, $args['resize'] );
} elseif ( $this->settings->is_smart_cropping() ) {
// If smart cropping is enabled and no resize is set, we apply smart focus since the resize can be triggered from the JS library.
$image->smartFocus();
}

if ( apply_filters( 'optml_apply_watermark_for', true, $url ) ) {
Expand Down
Loading