Tag Archive > animado

Detectar en PHP si un gif es animado

La siguiente función sirve para detectar si un GIF es animado o no (tiene más de 1 frame).
function isAnimatedGif($filename)
{
$filecontents=file_get_contents($filename);

$str_loc=0;
$count=0;

# There is no point in continuing after we find a 2nd frame
while [...]

Continue reading

, ,