<p>I'm currently running into some issues resizing images using GD.</p>

<p>Everything works fine until i want to resize an animated gif, which delivers the first frame on a black background.</p>

<p>I've tried using <code>getimagesize</code> but that only gives me dimensions and nothing to distinguish between just any gif and an animated one.</p>

<p>Actual resizing is not required for animated gifs, just being able to skip them would be enough for our purposes.</p>

<p>Any clues?</p>

<p>PS. I don't have access to imagemagick.</p>

<p>Kind regards,</p>

<p>Kris</p>

There is a brief snippet of code in the PHP manual page of the
```
imagecreatefromgif()
```
function that should be what you need:
```
imagecreatefromgif
```
comment #59787 by ZeBadger