phpSensei Posted October 8, 2007 Share Posted October 8, 2007 I want to know how people make it in php, when someone has a swf flash file, they get a screenshot of the swf. Its like www.stickpageportal.com I want to know how.. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/ Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 BUMPERZZZ!!! Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364749 Share on other sites More sharing options...
trq Posted October 8, 2007 Share Posted October 8, 2007 You could probably do something with ffmpeg called through exec but not pure php. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364752 Share on other sites More sharing options...
cooldude832 Posted October 8, 2007 Share Posted October 8, 2007 that is overkill the swf have frames, it is simply a snap shot of a certain frame in the swf, then that data is stored as a png/gif/jpg I dont know the exact manner of doing it, but needless to say you will need to have some sort of swf interrupter to handle this that can read out a certain frame and capture the graphical output. That or just do em by hand with photoshop and that handy prtsc button. Fyi your server most likely can not run a prtSc as it probably doesn't have any graphical interface to interrupt graphics, your server is a chuck of plastic and silicon in some far off bunker that runs through 1,0 all day long, waiting to be abused by you and your visitors. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364756 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 lmao, im sorry guys but I am super confused. any other methods? javascript maybe? Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364763 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 help. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364820 Share on other sites More sharing options...
micah1701 Posted October 8, 2007 Share Posted October 8, 2007 i'm not sure php could do this - afterall, PHP can't display and SWF file and, since PHP runs server side, how could it possible take a screenshot of what the browser outputs? why not just hit "print screen" and crop it in photoshop Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364827 Share on other sites More sharing options...
GamingWarrior Posted October 8, 2007 Share Posted October 8, 2007 i'm not sure php could do this - afterall, PHP can't display and SWF file and, since PHP runs server side, how could it possible take a screenshot of what the browser outputs? why not just hit "print screen" and crop it in photoshop i think what he wants is. know when you upload a video on you tube and it automatically takes 3 screen shots he wants to be able to do that. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364830 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 yes GamingWarrior, but i need it for flash files... Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364845 Share on other sites More sharing options...
cooldude832 Posted October 8, 2007 Share Posted October 8, 2007 like I said earlier you will need to know the strucutre of the swf files and simple find 3 graphic outputs you like and use them. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364853 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 structure? explain to me please. thanks for all the tries guys. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364887 Share on other sites More sharing options...
SammyGunnz Posted October 8, 2007 Share Posted October 8, 2007 Basically, you can't do this with PHP alone. Or even Javascript, for that matter. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364947 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 K seriously, so no one on this site knows how to do this.... Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364979 Share on other sites More sharing options...
cooldude832 Posted October 8, 2007 Share Posted October 8, 2007 fyi read my sig, if you are not willing to be helped, or be nice about it, then don't expect an answer, we provided you with ideas, however the sepcifics is a detailed solution that invovles work, pushing the keys to make a script, not what we are here to do. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364988 Share on other sites More sharing options...
phpSensei Posted October 8, 2007 Author Share Posted October 8, 2007 what? But I was being nice about it, i didnt say anything to offend. If i did, sorry. :'( Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-364998 Share on other sites More sharing options...
trq Posted October 9, 2007 Share Posted October 9, 2007 Did you bother to check out ffmpeg? Im quite sure it would be capable of said task. Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-365118 Share on other sites More sharing options...
phpSensei Posted October 12, 2007 Author Share Posted October 12, 2007 I look 6 hours straight into ffmpeg and i still have no clue on how to use it. This is so frustrating. Isnt there a script you can just copy paste to do this? like a javascript that gets the frame of the swf, then saves that frame into a png, then exports it to dir? Please, please i need this by next week. Please help me, please!!! Quote Link to comment https://forums.phpfreaks.com/topic/72266-get-screenshot/#findComment-367897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.