add_image_size( 'galery', 1200, 800, array( 'center', 'center', true ) );
<?php $image_array = get_field('port_2'); if ( $image_array ) { ?>
<img src="<?php echo esc_url($image_array['url']); ?>" alt="<?php echo esc_attr($image_array['alt']); ?>" />
<?php } ?>
<?php
$image = get_field('image');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
<img src="<?php echo bfi_thumb($image_array['url'], [ 'width' => 400, 'height' => 300, 'crop' => true ]); ?>" alt="<?php echo esc_attr($image_array['alt']); ?>" />