title: How to identify whether webp image is static or animated?
body: <p>I am working on a project where a user can upload <code>webp</code> images. I know how to convert <code>webp</code> images into jpg/png, but am stuck on how to identify whether the <code>webp</code> image is static (non-animated) or animated.</p>
  <p>I want to identify them because I use different commands for conversion:</p>
  <p>Command for non-animated webp to jpg:</p>
  <p><code>dwebp nonanimated.webp -o jpg.jpg</code></p>
  <p>Command for animated webp to non-animated webp (takes 2nd frame):</p>
  <p><code>webpmux -get frame 2 animated.webp -o nonanimated.webp</code></p>
  <p>But I cannot find a single command that handle both cases.</p>
  <p>I am using PHP on the server side, and HTML and Javascript for frontend.</p>