php Get SWF animation screenshot sample code

高洛峰
Release: 2023-03-04 11:20:01
Original
1225 people have browsed it

1. Download the attachment and install it, please see the help in the attachment
2. Copy the code into the appropriate location, generate the image, and figure out how to process it 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'; }
Copy after login

More php For articles related to obtaining SWF animation screenshot sample code, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!