Convert swf to jpg/png to act as preview

Author Message

Felix Laate

Tuesday 17 January 2006 3:14:15 am

Hi all!

In an extension I'm making I have the need to convert a swf (i.e. the first frame) to jpg or png. I need this as I need to place a layer ontop a preview of the swf, and that's not possible.

So I thought I'd make an operator that convertes and returns a jpg/png of the swf.

I searched the net, and I can't really find any way to do it with PHP.

Any help makes my day better :-)

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Felix Laate

Wednesday 18 January 2006 3:17:44 am

Hi again..

I did a lot of research and I discovered the ffmpeg-php estension which I thought would solve the problem. But, unfortunatly I can only get it to work with avi, mpeg, mov etc. and NOT with swf or flv.

I thought about publish it as an new operator extension here if there would be any interest for it. Shout if there is..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:20:45
Script start
Timing: Jan 18 2025 22:20:45
Module start 'layout'
Timing: Jan 18 2025 22:20:45
Module start 'content'
Timing: Jan 18 2025 22:20:45
Module end 'content'
Timing: Jan 18 2025 22:20:45
Script end

Main resources:

Total runtime0.6745 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1797152.6406
Module start 'layout' 0.00540.0027 741.820339.4766
Module start 'content' 0.00810.6651 781.2969484.6719
Module end 'content' 0.67320.0013 1,265.96888.1250
Script end 0.6745  1,274.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4501160.0002
Check MTime0.00130.1920160.0001
Mysql Total
Database connection0.00070.098610.0007
Mysqli_queries0.634194.0051520.0122
Looping result0.00050.0678500.0000
Template Total0.636894.420.3184
Template load0.00170.255020.0009
Template processing0.635094.141220.3175
Template load and register function0.00010.014110.0001
states
state_id_array0.00130.194510.0013
state_identifier_array0.00070.098320.0003
Override
Cache load0.00140.2062160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.070410.0005
Fetch class attribute name0.00100.148230.0003
XML
Image XML parsing0.00040.065110.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00070.1096160.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs