A chronological documentation test project, nothing serious, really!

24 Jun 2009 Howto decompose a SWF Adobe Flash file

This post describes howto decompose a SWF Flash-file using linux and a program named swfextract. The post came to life because I had to do some changes to one of my flash presentations but I had deleted all the source files. After searching the Internet i doscovered swfextract.

SWF Tools is a collection of SWF (Flash) manipulation and creation utilities like pdf2swf, jpeg2swf, png2swf, gif2swf, font2swf, wav2swf, swfcombine, swfdump, swfstrings, swfbbox and swfc. But I’m only going to use swfextract in this post.

If you don’t have it installed on your system, download it and install the deb-package

# wget
# dpkg -i swftools_0.8.1-2.1_i386.deb

The swftools package depends on several packages like libgif4 libt1-5 and they should be installed before swftools

# aptitude install libgif4 libt1-5

I was interested in extracting the image files in my Flash presentation and did the following to determine what was in the presentation file

# swfextract flashfile.swf
Objects in file flashfile.swf:
 [-i] 5 Shapes: ID(s) 1, 3, 5, 7, 9
 [-j] 4 JPEGs: ID(s) 2, 6, 8, 10
 [-f] 1 Frame: ID(s) 0

As we see above there are 4 JPEG-files I’m interested in extracting and their IDs.

I did the following to extract the image files

# swfextract -i 2 -j 2,6,8,10 flashfile.swf

Result files


If you don’t use the -i switch you will end up with only one output.jpg file.

You are now ready to recreate the Flash presentation using the extracted image files.

SWF Tools

Tags: , , , , , ,

Posted by

30 Mar 2008 How to store Adobe Photoshop Lightroom Catalogs on a network drive

I’ve always wanted to use Adobe Photoshop Lightroom to store the central library database on a network drive and be able to access it from different computers. This has not been possible because Lightroom is not a multiuser enabled software, and if you try to use a network drive you get the following error message “Lightroom cannot use the Database location you have chosen because it is located on a network volume.”

One solution to this problem is to use the good old MS-DOS subst command to map the network share. This should be done from at command prompt (cmd.exe)

subst X: \\server\sharename
  • X – the new drive letter
  • server – the servername
  • sharename – sharename that you would like to make available to Lightroom Catalogs

Another method is to subst an already exising network drive

subst X: P:

Where P: is your network drive and X: is the new substituded drive letter.

There are however some things that have to be considered before using this solution

  • Performance will be degraded because Lightroom does generate a lot of traffic while you edit and work on images
  • Only one computer/user can access the catalogs since they are stored as flat-file databases (not a multiuser solution)

Tags: ,

Posted by