php gets sample code for SWF animation screenshots

  • 2020-12-26 05:35:28
  • OfStack

1. Download the attachment and install it. See the help in the attachment
2. Copy the code into the appropriate place, generate the image, how to deal with it, do it by yourself
 
$oldswf = "/uploads/swf/test.swf"; 
$oldjpg = "/uploads/litpic/test.jpg"; 
$flash2jpeg = new COM("SunCN.Flash2Jpeg"); 
if ($flash2jpeg) { 
$a = $flash2jpeg->Flash2Jpeg($oldswf, 150, 200, $oldjpg); 
if ($a) { 
$litpic = '/images/defaultpic.gif'; 
} else { 
$litpic = $oldjpg; 
} 
} else { 
$litpic = '/images/defaultpic.gif'; 
} 

Related articles: