Hi!
I try to detect if the file that has been uploaded is a gif or an image.
Since I resize the images in srcset - I would like to cancel the srcset for gifs.
I edited the image.php file and inserted before the srcset an If statement:
<?php if($block->type()=='gif'): ?>
srcset='...'
But it seems that this function doesn’t really work.
any suggestion how can I detect a gif?
thanks a lot!