public function boot()
    {
        if (Config::get('images.dynamic_image_sizes') !== false) {
            $this->add_filter('media_meta', 'add_image_sizes_meta_to_media');
            $this->add_filter('attachment_fields_to_edit', 'add_intermediate_mgmt_fields');
            $this->add_filter('attachment_fields_to_save', 'handle_delete_intermediate_ajax');

            $this->add_action('admin_enqueue_scripts', 'enqueue_image_admin_scripts');
        }
    }
public function boot()
    {
        if (Config::get('images.dynamic_image_sizes') !== false) {
            $this->add_filter('media_meta', 'add_image_sizes_meta_to_media');
            $this->add_filter('attachment_fields_to_edit', 'add_intermediate_mgmt_fields');
            $this->add_filter('attachment_fields_to_save', 'handle_delete_intermediate_ajax');

            $this->add_action('admin_enqueue_scripts', 'enqueue_image_admin_scripts');
        }
    }
public function boot ( ) { if ( Config :: get ( 'images.dynamic_image_sizes' ) !== false ) { $ this -> add_filter ( 'media_meta' , 'add_image_sizes_meta_to_media' ) ; $ this -> add_filter ( 'attachment_fields_to_edit' , 'add_intermediate_mgmt_fields' ) ; $ this -> add_filter ( 'attachment_fields_to_save' , 'handle_delete_intermediate_ajax' ) ; $ this -> add_action ( 'admin_enqueue_scripts' , 'enqueue_image_admin_scripts' ) ; } }
Only enable dynamic image sizes if sizes have been defined.

@since 1.0.0
Only enable dynamic image sizes if sizes have been defined .