PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 13, 2012, 01:10:48 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to edit a Shockwave Flash .swf file?  (Read 737 times)
vc
Hero Member
*****
Offline Offline

Posts: 522


« on: April 01, 2010, 12:38:13 PM »

I am wondering if there are any tools available for editing .swf files.  Specifically:  my intent would be to extract graphics and images from typical 'slideshow' types of .swf containers.  Would that be possible?
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #1 on: April 01, 2010, 12:55:59 PM »

I am wondering if there are any tools available for editing .swf files.  Specifically:  my intent would be to extract graphics and images from typical 'slideshow' types of .swf containers.  Would that be possible?

I had occasion to look for an editor to produce edited SWF files some time ago and failed to find one, but I cannot say that it would not be possible to get content out of such a file ......  in truth I have forgotten if I could or not.

If you want to give a link to such a file I might like to have another look   Cheesy
Logged
vc
Hero Member
*****
Offline Offline

Posts: 522


« Reply #2 on: April 01, 2010, 01:10:07 PM »

If you want to give a link to such a file I might like to have another look   Cheesy


Here is one such link:

http://www.cbc.ca/photogallery/news/3198/

(Downloadable, with this FireFox extension):

https://addons.mozilla.org/en-US/firefox/addon/53003
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #3 on: April 01, 2010, 02:24:09 PM »

I eventually got the addon installed and d/loaded the file from the site ......  but could not play it with anything.  Huh

In that particular situation - with that site - I would bring up the pics I was interested in recovering, go to full screen, and use Ksnapshot to take a shot of each pic and save them.
Logged
vc
Hero Member
*****
Offline Offline

Posts: 522


« Reply #4 on: April 01, 2010, 07:16:46 PM »

I eventually got the addon installed and d/loaded the file from the site ......  but could not play it with anything.  Huh

Yes - I opened it with KWrite, and found that it's pretty much all in hex.  No links discernible.

In that particular situation - with that site - I would bring up the pics I was interested in recovering, go to full screen, and use Ksnapshot to take a shot of each pic and save them.

Done.  After some GIMPwork, the result is of suitable resolution for use as a background on an EeePC 701 display screen, or a Motorola Milestone, or such.  For better resolution I'd have to build another system... I have CRT monitors capable of 2048 x 1536 that would serve; if the .swf screen resolution scales accordingly, then the captured image should fit a larger display at least somewhat more clearly.
Logged
Tuxfriend
Hero Member
*****
Offline Offline

Posts: 1238


« Reply #5 on: April 01, 2010, 07:37:56 PM »

If you open the CBC stuff in full screen, then take a screen shot of only the image (e.g. using KSnapshot), then you'll have good quality images you can work with further.
Logged

Best regards

Eddie
vc
Hero Member
*****
Offline Offline

Posts: 522


« Reply #6 on: April 01, 2010, 11:46:29 PM »

If you open the CBC stuff in full screen, then take a screen shot of only the image (e.g. using KSnapshot), then you'll have good quality images you can work with further.

Unfortunately though, their definition of 'full screen' is really not - the viewing window goes full screen, yet the actual image still spans only two-thirds.

In addition to that, any screen capture made with KSnapshot is only at the standard 96dpi screen resolution, regardless.  That is the reason why I would have to set up a machine for a higher-resolution display output - and hope that the images would scale to the display accordingly.  If they do, then I would indeed be able to capture more pixels; if they do not, then I would be as well off performing the captures at a more standard display resolution.

As it is though, the captures I've made today are of sufficient resolution for an old EeePC - and that was my goal, anyhow.  A means of editing .swf files would be nice to have available; however, this present 'workaround' method seems adequate for the moment.
Logged
vc
Hero Member
*****
Offline Offline

Posts: 522


« Reply #7 on: April 02, 2010, 08:14:11 AM »

Have you tried "swftools" ?

No; they seem to be currently unavailable?  The package for same does not appear in Synaptic now, at any rate.  What were they?
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #8 on: April 02, 2010, 08:29:19 AM »

I have the tools installed on my 2007/2009/KDE4 install, but they are not of much use if I cannot d/load a working SWF file.

I can create SWF files (jpeg2swf) and extract the pics from them (swfextract) .......  provided I do not use Flash MX H.263 compression when creating the SWF file.

I do not at this time have a downloaded SWF file to play with ....  they seem rather scarce  Smiley

Quote
'Tools for SWF (Flash) animations under linux'
SWF Tools is a collection of SWF manipulation and generation utilities.  Included are:
    * PDF2SWF A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas etc. inside your Flash Movie. It's based on the xpdf PDF parser from Derek B. Noonburg.
    * SWFCombine A tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs in some sort of Browsing-SWF.
    * SWFStrings Scans SWFs for text data.
    * SWFDump Prints out various informations about SWFs.
    * JPEG2SWF Takes one or more JPEG pictures and generates a SWF slideshow.
    * PNG2SWF Like JPEG2SWF, only for PNGs.
    * GIF2SWF Converts GIFs to SWF. Also able to handle animated gifs.
    * WAV2SWF Converts WAV audio files to SWFs, using the L.A.M.E. MP3 encoder library.
    * AVI2SWF Converts AVI animation files to SWF. It supports Flash MX H.263 compression. Some examples can be found at examples.html.
    * Font2SWF Converts font files (TTF, Type1) to SWF.
    * SWFBBox Allows to readjust SWF bounding boxes.
    * SWFC A tool for creating SWF files from simple script files.
    * SWFExtract Allows to extract Movieclips, Sounds, Images etc. from SWF files.
    * RFXSWF Library A fully featured library which can be used for standalone SWF generation. Includes support for Bitmaps, Buttons, Shapes, Text, Fonts, Sound etc. It also has support for ActionScript using the Ming ActionCompiler.
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #9 on: April 02, 2010, 08:39:16 AM »

I will try to attach a SWF file created with the SWFTools ........  just 3 pics reduced to 150x150 to keep the file size small .... just drop the ".txt" from the name and try it.

Did not work  Sad

Logged
Tuxfriend
Hero Member
*****
Offline Offline

Posts: 1238


« Reply #10 on: April 02, 2010, 09:56:36 AM »

Maybe HTTrack can download the SWF file. HTTrack is in the repos.

But be careful: If you dl the whole web you could put an end to it ...  Cheesy
Logged

Best regards

Eddie
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6893


MLU


« Reply #11 on: April 02, 2010, 11:44:48 AM »

Maybe HTTrack can download the SWF file. HTTrack is in the repos.

But be careful: If you dl the whole web you could put an end to it ...  Cheesy


I tried that ......  it seems I cannot play the file ........  I get a pop up saying that some plugin is missing   Cheesy

EDIT
         "The CBC.ca photo gallery requires the Adobe Flash Plugin version 7.0 or higher."
Logged
Tuxfriend
Hero Member
*****
Offline Offline

Posts: 1238


« Reply #12 on: April 03, 2010, 04:28:08 AM »

Time for a software suggestion ...?  Cheesy
Logged

Best regards

Eddie
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM