Title: Image Styles for Core Block
Author: Mahesh Waghmare
Published: <strong>January 19, 2022</strong>
Last modified: January 19, 2022

---

Search plugins

![](https://ps.w.org/k2-core-block-image-styles/assets/banner-772x250.png?rev=2659774)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/k2-core-block-image-styles/assets/icon-256x256.png?rev=2659774)

# Image Styles for Core Block

 By [Mahesh Waghmare](https://profiles.wordpress.org/mahesh901122/)

[Download](https://downloads.wordpress.org/plugin/k2-core-block-image-styles.1.0.0.zip)

 * [Details](https://test.wordpress.org/plugins/k2-core-block-image-styles/#description)
 * [Reviews](https://test.wordpress.org/plugins/k2-core-block-image-styles/#reviews)
 * [Development](https://test.wordpress.org/plugins/k2-core-block-image-styles/#developers)

 [Support](https://wordpress.org/support/plugin/k2-core-block-image-styles/)

## Description

This plugin adds a new image styles for the Core Image block.

Read more in [one page quick documentation](https://maheshwaghmare.com/k2-core-block-image-styles/).

#### Features:

 * Zero configuration
 * Easy to use.
 * 25+ image styles.
    - Triangle
    - Trapezoid
    - Parallelogram
    - Rhombus
    - Pentagon
    - Hexagon
    - Heptagon
    - Octagon
    - Nonagon
    - Decagon
    - Bevel
    - Rabbet
    - Left Arrow
    - Right Arrow
    - Left Point
    - Right Point
    - Left Chevron
    - Right Chevron
    - Star
    - Cross
    - Message
    - Close
    - Frame
    - Inset
    - Custom Polygon
    - Circle
    - Ellipse
 * Add new styles with filter.
 * Remove existing styles with filter.
 * Modify existing styles with filter.
 * Quick support

**Welcome for featured requests**

If you have any suggestion or any featured request then don’t hesitate to [contact](https://maheshwaghmare.com/say-hello/).

### Add new image style

    ```
    add_filter( 'k2cbis_get_styles', 'prefix_add_new_style' );

    function prefix_add_new_style( $styles = array() ) {
        $styles[] = array(
            'name' => 'prefix-new-style',
            'label' => 'New Style',
            'inline_style' => '.wp-block-image.is-style-prefix-new-style img { clip-path: polygon(40% 10%, 30% 50%, 83%  25%); }',
        );

        return $styles;
    }
    ```

### Bug reports

Bug reports for “K2 Core Block Image Styles” are welcomed in our [repository on GitHub](https://github.com/maheshwaghmare/k2-core-block-image-styles/).
Please note that GitHub is not a support forum, and that issues that are not properly
qualified as bugs will be closed.

### Further reading

For more info check out the following:

 * The [maheshwaghmare.com](https://maheshwaghmare.com/) official website.
 * The [Contact Me](https://maheshwaghmare.com/say-hello/).
 * The [Getting started guide](https://maheshwaghmare.com/k2-core-block-image-styles/).
 * Other my [WordPress Plugins](https://wordpress.org/plugins/search/mahesh901122/).
 * Contribute with [development](https://github.com/maheshwaghmare/k2-core-block-image-styles/).
 * Make a [small donation](https://www.paypal.me/mwaghmare7/).

## FAQ

### Can I use this plugin with any Gutenberg Block

Nope, For now this plugin add the styles only for the Core Image Gutenberg blocks.
We may add those styles for other Gutenberg blocks in future.

### Can I enable or disable any styles?

Yes. For now you can use the filter `k2cbis_get_styles` to add, remove or modify
styles.

E.g.

    ```
    add_filter( 'k2cbis_get_styles', 'prefix_add_new_style' );
    function prefix_add_new_style( $styles = array() ) {
        $styles[] = array(
            'name' => 'prefix-new-style',
            'label' => 'New Style',
            'inline_style' => '.wp-block-image.is-style-prefix-new-style img { clip-path: polygon(40% 10%, 30% 50%, 83%  25%); }',
        );

        return $styles;
    }
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Image Styles for Core Block” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Mahesh Waghmare ](https://profiles.wordpress.org/mahesh901122/)

[Translate “Image Styles for Core Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/k2-core-block-image-styles)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/k2-core-block-image-styles/),
check out the [SVN repository](https://plugins.svn.wordpress.org/k2-core-block-image-styles/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/k2-core-block-image-styles/)
by [RSS](https://plugins.trac.wordpress.org/log/k2-core-block-image-styles/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **4 years ago**
 *  Active installations **10+**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **5.8.13**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/k2-core-block-image-styles/)
 * Tag
 * [image](https://test.wordpress.org/plugins/tags/image/)
 *  [Advanced View](https://test.wordpress.org/plugins/k2-core-block-image-styles/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/k2-core-block-image-styles/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/k2-core-block-image-styles/reviews/)

## Contributors

 *   [ Mahesh Waghmare ](https://profiles.wordpress.org/mahesh901122/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/k2-core-block-image-styles/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/mwaghmare7/)