<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE> Image.open( "C:\test.jpg") is this wrong ?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">I am trying to simply open an image with PIL... My problem is that I don't know what my active directory is so I am putting an absolute path name in quotes. It can't find the specified file or directory. I'm horrible with docs. I also tried to save an image file (to find where it saved it, but I didn't understand what mode is (I now know it is RGB etc.). Does everyone usually do fairly well with the docs except for me??? For instance, it says Image.open(file, …something else [I'm at work so I don't remember]). How am I supposed to know even to put quotes around the filepath? I'm really starting to wonder if there is something wrong with me.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">So How do I open an image?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Image.open("C:\test.jpg")  # this is what I have right now. And it can't find the file or directory. The file is there (it is everywhere on my computer now!!!)</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I found some code where they apply the file path to a variable in single quotes. Is that how it is done. Also I thought single quotes were for characters not strings.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Sincerely,</FONT>
</P>

<P><B><FONT FACE="Times New Roman">James Carnell</FONT></B>
</P>
<BR>

</BODY>
</HTML>