Here is the code to get images from an ACF field:
$image = get_field('vignette_du_projet'); // Get the image's ID
$size = 'vignette_projet'; // Get the thumbail size
// If the image field field is not empty, diplay the image with the right size:
if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
I tried to add the apply_filters( 'dominant_colors'
but the image don’t show up.