Revision: 20070720_200935 | All Revisions
DCF.py is a software that will convert your images for viewing on your digital camera. You can get a copy of DCF.py from the "using Sony digital camera as a picture viewer" thread. Although DCF.py was originally written as part of a Sony digital camera discussion thread, it works for all brands of digital cameras that support DCF (Design rule for Camera File system). Almost all of today's digital cameras support DCF.
DCF.py is a Python script that will run on any operating system with a Python interpreter. Most Linux distribution has Python pre-installed. (See "Related Links" below for instructions on installing Python on Windows.)
DCF.py "image 1" [ . . . "image n" ]
DCF.py is a command-line utility, which means you'll have to run it from the system prompt.
There are two possible reasons why you could have gotten a "Command not found" message.
The operating system could not find DCF.py itself.
Check the file permission. Make sure you can execute the DCF.py script. Use the following command to make DCF.py an executable:
chmod 755 DCF.py
Update your path so that the operating system could find the DCF.py script.
If you are in the same directory as the location of DCF.py and the system still can't find the script, then the current directory is not in the path. You can run DCF.py by adding "./" in front of it, such as:
The operating system could not find the Python compiler that is specified on the first line of the script.
By default, the Python compiler is installed into /usr/bin, but on some systems it could be located in /usr/local/bin. You can also find out where python is located by using the "which" command:
Simply use a text editor to modify DCF.py and change to first line to match your Python location. If "which" is unable to find python, then you'll have to install it on your system.
If you get a dialog box while trying to execute DCF.py in the Windows Command Prompt, then you do not have Python installed on Windows.[[Image:Windows_cannot_open_this_file.png|center|thumb|300px]]