Support

Account

Home Forums Backend Issues (wp-admin) Choose image size in ACF-Image Field Reply To: Choose image size in ACF-Image Field

  • Thank you, this helped me a lot. I know use an if statement in the template to check if it is a gif file and if then use the original image.

    <?php if (exif_imagetype($image['url']) != IMAGETYPE_GIF) { ?>
    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
    <?php } else { ?>
    <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
    <?php } ?>