TrID definitions for Seattle FilmWorks files

Probably the most useful program for accurately detecting the .sfw, .pwp, .pwm, .alb, and .#nn Seattle FilmWorks / PhotoWorks file formats is Marco Pontello's TrID file identifier utility in combination with jonesrh's Seattle FilmWorks oriented TrID definitions, either the "lite" version of the definitions provided with mark0.net's TrID defs, or the "full-blown" version of the Seattle FilmWorks / PhotoWorks TrID definitions inside: jonesrh_sfw_trid_defs.zip.  Both the "lite" and the "full-blown" TrID definitions have been successful at identifying every one of my 3200+ unique Seattle FilmWorks / PhotoWorks files.

Even though the jonesrh utilities sfwwhichfmt, sfwinfo, and sfw98jpgtran are slightly more accurate than TrID at detecting all the Seattle FilmWorks / PhotoWorks file formats and even though they are much better than TrID at identifying the location of format errors in Seattle FilmWorks / PhotoWorks files, TrID is actually a more useful, general purpose utility for the simple reason that (as of 2022-06-22) it can also detect over 14800 other file formats!

These 3 (slightly more accurate) utilities -- sfwwhichfmt, sfwinfo, and sfw98jpgtran -- are described in: the .sfw conversion portal's Tools to detect .sfw file formats section and/or the portal's jonesrh SFW98 format .sfw to .jpg converter section.

Some other (usually less accurate) alternatives to the jonesrh TrID definitions and sfwwhichfmt, sfwinfo, and sfw98jpgtran are described in: Alternatives for .sfw file format detection. Most of them involve searching for one or more of the SFW oriented strings (eg, SFW98A, SFW98, SFWF, SFW94A, SFW94, SFW93A, SFW9, etc).

Online TrID

As of 2015-02-08, Marco Pontello's Online TrID facility works very well to recognize variations of the Seattle FilmWorks / PhotoWorks .sfw, .pwp, .pwm, .alb, and .#nn file formats.

It is probably the quickest way for you to rapidly classify what specific Seattle FilmWorks / PhotoWorks format a few of your .sfw or .pwp files are.  I highly recommend you trying it for a few minutes before beginning your search for a suitable .sfw or .pwp converter.

Hint:
You can usually bypass the remainder of this page by simply utilizing Online TrID, instead of using the TrID desktop software
(even though Online TrID uses the "lite" Seattle FilmWorks / PhotoWorks defs rather than jonesrh's somewhat better "full-blown" defs mentioned in the immediately following "TrID desktop software" section) .

TrID desktop software

As of 2015-02-08, the TrID desktop software -- both the TrID command line utility and the TrIDNet GUI -- also works very well to recognize variations of the Seattle FilmWorks / PhotoWorks files, even with the "lite" versions of the Seattle FilmWorks / PhotoWorks TrID definitions that are provided in TrID's definition downloads: triddefs.zip and triddefs_xml.7z.

Consequently, you no longer have to follow the procedures below to obtain accurate identification of Seattle FilmWorks / PhotoWorks files using TrID. The definitions distributed by mark0.net should accurately identify those files.

But if you do download the TrID desktop software, then merge in my "full-blown" Seattle FilmWorks oriented TrID definitions to TrID's distributed definitions, you'll enable stricter signature checking, decrease the (admittedly remote) possibility of any false positives, and you'll have available some more detailed explanations of the file formats. These "full-blown" defs can co-exist with, but take precedence over, the "lite" Seattle FilmWorks / PhotoWorks defs that are distributed with TrID at mark0.net.

If you do decide to use the TrID desktop software (rather than sufficing with Online TrID), then what I'd suggest is downloading the following TrID oriented .zip and .7z files indicated by the bolded items on the TrID pages listed:

Also, download my "full-blown" Seattle FilmWorks oriented TrID XML definitions for .sfw, .pwp, .pwm, .alb, and .#nn files: jonesrh_sfw_trid_defs.zip.

Expand all of the downloads -- except for the distributed TrID XML defs (triddefs_xml.7z) and my "full-blown" TrID XML definitions (jonesrh_sfw_trid_defs.zip) -- into a folder. Let's call the folder \TrID for the sake of an example.  It will (among other things) contain the executables: trid.exe, TrIDNet.exe, triddefspack.py, tridupdate.py (and tridscan.py, if you downloaded that also). So I'll call \TrID the "executable" folder.

The TrID XML defs (triddefs_xml.7z) contains all the distributed TrID definitions in .xml format. Expand that .7z file via 7-Zip (or some other unzipper that can read .7z files) into a folder directly underneath the folder containing all the TrID executables. For example, let's expand triddefs_xml.7z so that all its .xml files are contained in subfolders underneath \TrID\defs. Let's call \TrID\defs the "XML folder tree". Here are some of its lowest level subfolders:

Then expand my 8 (full-blown) Seattle FilmWorks oriented TrID XML definitions from jonesrh_sfw_trid_defs.zip into the \TrID\defs folder.  Those 8 XML defs have the following names:

Then manually move -- not copy -- those 8 (full-blown) Seattle FilmWorks oriented TrID XML defs from \TrID\defs to their respective alphabetical subfolders of \TrID\defs: 1 file into \a, 2 files into \p, and 5 files into \s.

Delete (or rename) \TrID\TrIDDefList.TRS file, if it exists.
Delete \TrID\defs\TrIDDefList.TRS file, if it exists.

Run the TrIDNet GUI (TrIDNet.exe) by double-clicking on its Windows Explorer icon in the \TrID directory.

Within 7-60 seconds (depending on whether TrIDNet updated an existing TrIDDefList.TRS vs. created a new one), you should see that 11309 (or more) definitions have been loaded into memory.

Click "Rescan Defs" (just to be sure). This should trigger TrIDNet to do a Rescan Defs. It will probably take about 30-60 seconds while all the .xml files are re-read. Just wait until you see the words:

where the 11317 will likely be even higher by the time you read this.  When that phrase appears, TrIDNet has finished rebuilding its definitions file, TrIDDefList.TRS.

You can now use the top portion of the TrIDNet window to browse for files to analyze. TrIDNet will analyze one file at a time. If you just have a few files to analyze, then you can just go ahead and do it all with TrIDNet, and just bypass reading the rest of this page.

However, if you have a lot of files to analyze, then I suggest you go ahead and re-build the definitions file (triddefs.trd) which the TrID command line utility uses. That way you'll be able to use the wildcarding facility of the TrID command line utility.

To rebuild triddefs.trd using triddefspack.py, you'll need a machine with Python 2.7.x installed.  On that machine, open a command line windows using Start / All Programs / Accessories / Command Prompt, then issue the bolded commands in the bluish-gray sections below.

> cd p:\trid
 
> p:
 
> dir *.exe,*.py
Volume in drive P is XXXYYZ
Volume Serial Number is 1ABC-02F3
 
Directory of P:\TrID
 
2016-04-02 15:15 108,544 trid.exe
2016-01-26 22:24 73,728 TrIDNet.exe
 
Directory of P:\TrID
 
2016-04-18 13:08 25,188 tridscan.py
2017-03-03 13:26 3,427 tridupdate.py
2016-04-18 13:01 12,816 triddefspack.py
5 File(s) 223,703 bytes
0 Dir(s) ?,???,???,??? bytes free
 
> cd defs
 
> dir /s /on *sfw*.xml
Volume in drive P is XXXYYZ
Volume Serial Number is 1ABC-02F3
 
Directory of P:\TrID\defs\a
 
2013-02-02 15:45 831 alb-sfw.trid.xml
2013-01-22 06:45 1,084 alb-sfw-alb-10dd94.trid.xml
2 File(s) 1,915 bytes
 
Directory of P:\TrID\defs\p
 
2017-08-28 08:00 1,018 pwm-sfw.trid.xml
2013-02-03 06:36 1,571 pwm-sfw94a.trid.xml
2017-08-28 08:00 1,039 pwp-sfw.trid.xml
2015-02-02 21:32 1,730 pwp-sfw95b.trid.xml
4 File(s) 5,358 bytes
 
Directory of P:\TrID\defs\s
 
2017-08-28 08:05 1,060 sfw-sfw93.trid.xml
2015-02-02 21:20 1,409 sfw-sfw93a.trid.xml
2017-08-28 08:05 1,035 sfw-sfw94.trid.xml
2013-01-22 07:16 1,882 sfw-sfw94a-compressed.trid.xml
2013-01-22 07:13 2,193 sfw-sfw94a-compressed-w-image-id-before-main-image.trid.xml
2013-02-03 16:19 1,386 sfw-sfw94a-uncompressed.trid.xml
2017-08-28 08:05 1,231 sfw-sfw94-bmp.trid.xml
2017-08-28 08:05 1,277 sfw-sfw98.trid.xml
2013-02-03 16:16 2,370 sfw-sfw98a.trid.xml
9 File(s) 13,843 bytes
0 Dir(s) ?,???,???,??? bytes free
 
Total Files Listed:
15 File(s) 21,116 bytes
0 Dir(s) ?,???,???,??? bytes free
 
> cd ..
 
> triddefspack.py --help
 
TrIDDefsPack/Py - TrID's defs packager v1.26b - (C) 2011-2016 By M.Pontello
 
usage: triddefspack.py [-h] [-v] [-s] [-u] [-t TRD]
[filenames [filenames ...]]
 
Read a number a TrID's XML definitions and create a new TRD package.
 
positional arguments:
filenames TrID's definitions (can include path & wildcards). (default:
None)
 
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-s Strip unneccesary info (remarks, URLs, etc.) (default: False)
-u update mode (add only defs in the current path to the
existing .TRD package) (default: False)
-t TRD TRD package filename. (default: triddefs.trd)
 
> triddefspack.py .\defs
 
TrIDDefsPack/Py - TrID's defs packager v1.26b - (C) 2011-2016 By M.Pontello
 
Building files list...
Found 11317 definitions.
Reading...
Packing...
Package size: 4751006 bytes. Definitions: 11317
File triddefs.trd written.
 

That last run of triddefspack.py takes about 1-5 minutes.

Now show the TrIDDefList.TRS created by TrIDNet and the triddefs.trd created by triddefspack.py.  Then show all the files in \TrID, but don't hassle with showing all the thousands of defs in the \TrID\defs tree:

> dir *.tr?
Volume in drive P is XXXYYZ
Volume Serial Number is 1ABC-02F3
 
Directory of P:\TrID
 
2019-03-17 00:52 9,396,626 TrIDDefList.TRS
2019-03-17 08:24 4,751,006 triddefs.trd
2 File(s) 14,147,632 bytes
0 Dir(s) ?,???,???,??? bytes free
 
> dir /oe
Volume in drive P is XXXYYZ
Volume Serial Number is 1ABC-02F3
 
Directory of P:\TrID
 
2018-11-02 07:16 <DIR> .
2018-11-02 07:16 <DIR> ..
2019-03-17 02:28 <DIR> defs
2016-01-26 22:24 73,728 TrIDNet.exe
2016-04-02 15:15 108,544 trid.exe
2016-04-18 13:01 12,816 triddefspack.py
2016-04-18 13:08 25,188 tridscan.py
2017-03-03 13:26 3,427 tridupdate.py
2019-03-17 08:24 4,751,006 triddefs.trd
2019-03-17 00:52 9,396,626 TrIDDefList.TRS
2016-01-27 01:07 1,328 readme_tridnet.txt
2016-04-04 12:53 1,182 readme.txt
9 File(s) 14,373,845 bytes
3 Dir(s) ?,???,???,??? bytes free
 

Now you can run the TrID command line utility from the \TrID folder. Here's an example in which I've rearranged the order that the files were listed by TrID in order to match the list of .xml files listed above, ie, the list that begins with alb-sfw-alb-10dd94.trid.xml and ends with sfw-sfw98a.trid.xml.

 
> trid p:\tst_examples\*.* -r:2
 
TrID/32 - File Identifier v2.10 - (C) 2003-11 By M.Pontello
Definitions found: 11317
Analyzing...
 
File: p:\tst_examples\Xi-mama.alb
66.6% (.ALB) Seattle FilmWorks / PhotoWorks photo album (14000/1)
33.3% (.ALB) Seattle FilmWorks / PhotoWorks photo album (7000/1)
 
File: p:\tst_examples\31356_01.pwm
37.5% (.PWM) Seattle FilmWorks / PhotoWorks photo Meta file (6033/6)
31.2% (.PWM) Seattle FilmWorks / PhotoWorks photo Meta file (5013/3)
 
File: p:\tst_examples\055145.pwp
54.5% (.PWP) Seattle FilmWorks / PhotoWorks multi-image PhotoMail file (6009/5)
45.4% (.PWP) Seattle FilmWorks / PhotoWorks photos (5005/2)
 
File: p:\tst_examples\28048871.#20
54.5% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW93A) (6004/2)
45.4% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW93) (5004/2)
 
File: p:\tst_examples\07858_04.sfw
54.7% (.SFW) Seattle FilmWorks / PhotoWorks photo (compressed SFW94A) (6054/6)
45.2% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW94) (generic) (5000/1)
 
File: p:\tst_examples\06784_22_(from_CD).SFW
54.8% (.SFW) Seattle FilmWorks / PhotoWorks photo (compressed SFW94A w/ Image Id) (6065/8)
45.1% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW94) (generic) (5000/1)
 
File: p:\tst_examples\Lake_Namtso_Uncompressed_SFW94A.sfw
37.5% (.SFW) Seattle FilmWorks / PhotoWorks photo (Uncompressed SFW94A) (6039/5)
31.3% (.SFW) Seattle FilmWorks / PhotoWorks photo (Uncompressed SFW94) (5034/4)
 
File: p:\tst_examples\031978_09.sfw
54.7% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW98A) (6056/10)
45.2% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW98) (5009/5)
 

I used the -r:2 switch above in order to demonstrate how the "full-blown" vs. the "lite" definitions will display. The 1st line for each file is from the more extensive, "full-blown" def. The 2nd line for each file is from the "lite" def.

Another instructive example is to use the -v switch. I'll leave that as an exercise for the reader.

With the above "full-blown" Seattle FilmWorks definitions, you can trust TrID to do an extremely good job of analyzing all the listed Seattle FilmWorks / PhotoWorks file formats (.sfw, .pwp, .pwm, .alb, .#nn). With the mark0.net distributed TrID definitions that have the "lite" Seattle FilmWorks defs, you can trust TrID to do a very good job of analyzing all those formats.

Note:
Marco asked me to develop more generic definitions for inclusion in the distributed TrID definitions, so I came up with these 7 ("lite" version) Seattle FilmWorks oriented TrID XML defs in which the signatures are reduced to their core essentials and the <Rem> field has much less detail:

  • alb-sfw.trid.xml
  • pwm-sfw.trid.xml
  • pwp-sfw.trid.xml
  • sfw-sfw93.trid.xml
  • sfw-sfw94.trid.xml
  • sfw-sfw94-bmp.trid.xml
  • sfw-sfw98.trid.xml

The use of pwm-sfw.trid.xml and sfw-sfw94-bmp.trid.xml above is required to avoid the generic sfw-sfw94.trid.xml from generating false positives for PWM and Uncompressed SFW94.

These "lite" definition versions are (as of 2015-02-08) distributed in the full set of TrID definitions available from mark0.net. I don't plan to distribute them here from jonesrh.info.

These "lite" versions seem to work (almost) as well as my "full-blown" versions. They should be adequate for most purposes. But you have to keep in mind that with these "lite" versions, the SFW94 format images are listed as:

  • Seattle FilmWorks / PhotoWorks photo (SFW94) (generic)
  • Seattle FilmWorks / PhotoWorks photo (Uncompressed SFW94)
  • Seattle FilmWorks / PhotoWorks photo Meta file

The first case above is to be understood as compressed SFW94. It is not expressly stated simply because it is not expressly detected due to the nature of these "lite" definitions being as generic as possible, yet still attempting to maintain a high level of accurate identification.

Contrast those "lite" file format listings above with the listings below from the "full-blown" TrID defs (where all the files beginning with the SFW94A signature are evaluated very precisely):

  • Seattle FilmWorks / PhotoWorks photo (compressed SFW94A)
  • Seattle FilmWorks / PhotoWorks photo (compressed SFW94A w/ Image Id)
  • Seattle FilmWorks / PhotoWorks photo (Uncompressed SFW94A)
  • Seattle FilmWorks / PhotoWorks photo Meta file

If the jonesrh "full-blown" defs had not been merged with the defs distributed with TrID, then the output would instead look similar to the following:

 
> trid p:\tst_examples\*.*
 
TrID/32 - File Identifier v2.24 - (C) 2003-16 By M.Pontello
Definitions found: 11309
Analyzing...
 
File: p:\tst_examples\Xi-mama.alb
100.0% (.ALB) Seattle FilmWorks / PhotoWorks photo album (7000/1)
 
File: p:\tst_examples\31356_01.pwm
50.0% (.PWM) Seattle FilmWorks / PhotoWorks photo Meta file (5013/3)
 
File: p:\tst_examples\055145.pwp
100.0% (.PWP) Seattle FilmWorks / PhotoWorks photos (5005/2)
 
File: p:\tst_examples\28048871.#20
100.0% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW93) (5004/2)
 
File: p:\tst_examples\07858_04.sfw
100.0% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW94) (generic) (5000/1)
 
File: p:\tst_examples\06784_22_(from_CD).SFW
100.0% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW94) (generic) (5000/1)
 
File: p:\tst_examples\Lake_Namtso_Uncompressed_SFW94A.sfw
50.1% (.SFW) Seattle FilmWorks / PhotoWorks photo (Uncompressed SFW94) (5034/4)
 
File: p:\tst_examples\031978_09.sfw
100.0% (.SFW) Seattle FilmWorks / PhotoWorks photo (SFW98) (5009/5)
 

I don't suggest using the -r:2 (or higher value) switch when using only the mark0.net distributed defs (without the jonesrh supplied defs) when trying to identify Seattle FilmWorks / PhotoWorks files, since the 2nd or subsequent lines might confusingly suggest some other format.


This page is copyright © 2012-2022, Richard H. Jones.  All rights reserved, except:  I freely grant any person or entity the right to use, modify, and distribute my Seattle FilmWorks oriented TrID XML definitions that are downloadable from this page.

Page's last update was on 2022-06-22.