• Hi,

    When plugin is active, my custom image size with specific crop position is broken.

    For exemple, when using this setting:
    add_image_size( 'top_thumb', 200, 50, array( 'center', 'top' ) );
    The cropping defined in add_image_size is not taken into account and all images are cropped from the center.

    Could you take a look and provide a fix?

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same kind of issue here that cropping is not fired at all with custom image sizes.

    My case: When using WP own soft crop image sizes (large, medium) “data-smartcrop-focus” and SmartCrop related classes are set correct. All good there.

    But when creating own image size
    add_image_size( 'hd', 1920, 1080, false );

    regenerated thumbnails

    and then working with that size
    the_post_thumbnail( 'hd' );
    or
    wp_get_attachment_image( $attachment_id, 'hd' );

    …there is no SmartCrop related functionality in element.

    Thread Starter yepecece

    (@yepecece)

    Just FYI,
    I managed to fix this by going to WP SmartCrop General Settings and disabling “Thumbnail Generation”. It is working fine now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug with add_image_size custom crop position’ is closed to new replies.