title: Convert SWF to PNG
body: <p>I'd like to be able to take a 1-frame SWF file and convert it to PNG through PHP. I'm okay with using command-line tools to get this done.</p>
  
  <p>How could I go about doing this? I found <a href="http://www.bytescout.com/swftoimage.html" rel="noreferrer">an ActiveX library</a>, but that seems like one too many layers. I also see that Gnash seems to have a <a href="http://gnashdev.org/doc/html/classgnash_1_1PngImageOutput.html" rel="noreferrer">PNG output class</a>, but I can't figure out how to get to that from the command line without doing some deep coding of my own. Are there any other clever solutions available? Thanks!</p>
  
  <p><strong>EDIT:</strong> To clarify, this is not a one-time task I just want to be able to do once. I'd like to be able to have a PHP script perform this task on command. Thanks!</p>
  
  <p><strong>Another EDIT:</strong> One more clarification. This is not a situation in which, say, a user makes a drawing in Flash. I am downloading raw 1-frame SWF files, and want to save PNG copies in order to reduce download time. Is such a task possible? Thanks again!</p>