Title: BF Advanced Images
Author: Bornfight
Published: <strong>ନଭେମ୍ବର 14, 2021</strong>
Last modified: ମାର୍ଚ୍ଚ 7, 2023

---

Search plugins

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://s.w.org/plugins/geopattern-icon/bf-advanced-images.svg)

# BF Advanced Images

 By [Bornfight](https://profiles.wordpress.org/bornfight/)

[Download](https://downloads.wordpress.org/plugin/bf-advanced-images.1.0.1.zip)

 * [Details](https://ory.wordpress.org/plugins/bf-advanced-images/#description)
 * [Reviews](https://ory.wordpress.org/plugins/bf-advanced-images/#reviews)
 *  [Installation](https://ory.wordpress.org/plugins/bf-advanced-images/#installation)
 * [Development](https://ory.wordpress.org/plugins/bf-advanced-images/#developers)

 [Support](https://wordpress.org/support/plugin/bf-advanced-images/)

## Description

With this plugin you can create images on demand. You can disable default image 
sizes so
 each image you upload won’t be copied multiple times with different size.
You can create your sizes for images and size will be created when you call image
and not on upload.

## Installation

Upload ‘bf-advanced-images’ to the ‘/wp-content/plugins/’ directory

Activate the plugin through the ‘Plugins’ menu in WordPress

#### How this plugin works

 1. Removing default image sizes

You can disable default image sizes so when uploading an image only original image
will be uploaded

 1. Adding new cached image sizes

You can create as many image size you want and only when you use this image size
image with this size will be created.

    ```
    if ( function_exists( 'bfai_register_image_sizes' ) ) {
        bfai_register_image_sizes( array(
            'image_200'     => array( 200, 0 ),
            'image_350_200' => array( 350, 200 ),
            'image_150_200' => array( 150, 200 ),
        ) );
    }
    ```

 1. Creating image sizes on demand

When image is called it will generate image size for that image

Example 1:

_bfai\_get\_image\_by\_size\_name( int $attachment\_id, string $size\_name, bool
$crop = false);_

Parameters:
 **$attachment_id** (int)(required)

**$size_name**
 (string)(required) -> name of size name registered with bfai_register_image_sizes
function

**$crop**
 (bool)(optional)

    ```
    $image_url = bfai_get_image_by_size_name( $attachment_id, 'image_200', true);
    ```

Example 2:

_bfai\_get\_image\_by\_custom\_size( int $attachment\_id, array $sizes, bool $crop
= false);_

Parameters:
 **$attachment_id** (int)(required)

**$sizes**
 (array)(required) -> Add integer width and height separated with comma

**$crop**
 (bool)(optional)

    ```
    $image_url = bfai_get_image_by_custom_size( $attachment_id, array( 200, 0 ), true );
    ```

## FAQ

### What kind of support do you provide?

Please post your question on plugin support forum

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“BF Advanced Images” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Bornfight ](https://profiles.wordpress.org/bornfight/)
 *   [ jmucak ](https://profiles.wordpress.org/jmucak/)

[Translate “BF Advanced Images” into your language.](https://translate.wordpress.org/projects/wp-plugins/bf-advanced-images)

### Interested in development?

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

## Changelog

#### 1.0.0

_Release Date – 27 October 2021_
 First Release

#### 1.0.1

_Release Date – 22 November 2021_

 * New – Added WP CLI Commands

## Meta

 *  Version **1.0.1**
 *  Last updated **3 years ago**
 *  Active installations **80+**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **6.1.10**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/bf-advanced-images/)
 * Tags
 * [custom images](https://ory.wordpress.org/plugins/tags/custom-images/)[images](https://ory.wordpress.org/plugins/tags/images/)
 *  [Advanced View](https://ory.wordpress.org/plugins/bf-advanced-images/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/bf-advanced-images/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/bf-advanced-images/reviews/)

## Contributors

 *   [ Bornfight ](https://profiles.wordpress.org/bornfight/)
 *   [ jmucak ](https://profiles.wordpress.org/jmucak/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/bf-advanced-images/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ory.wordpress.org/?output_format=md)