Hi everyone, I'm having some problems with basic PIL functions.  First, when I try to call the size() method, I get a typeerror (tuple object is not callable).  And similar errors for other methods.
Also, when I try to use getdata(), I get an error message that says "ImagingCore object at <hex-address>".  However, some methods, like getpixel(), do work. 
I'm using the newest distro of Python and the newest binary build of PIL, on Win2k.  The image I'm working with is a TIFF file: here is the output of tiffinfo:

TIFF Directory at offset 0x10 (16)
  Subfile Type: (0 = 0x0)
  Image Width: 288 Image Length: 192
  Resolution: 72, 72 pixels/inch
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 192
  Planar Configuration: single image plane
  Make: Canon
  Model: Canon EOS-1DS
  DateTime: 2006:04:27 15:37:04
  EXIFIFDOffset: 4582
TIFF Directory at offset 0x11e6 (4582)
  ExposureTime: 0.000625
  FNumber: 8.000000
  ExposureProgram: 4
  ISOSpeedRatings: 400
  DateTimeOriginal: 2006:04:27 15:37:04
  DateTimeDigitized: 2006:04:27 15:37:04
  ShutterSpeedValue: 10.625000
  ApertureValue: 6.000000
  ExposureBiasValue: 0.666667
  MeteringMode: 5
  Flash: 0
  FocalLength: 400.000000
  MakeNote: /*a bunch of hex*/
  UserComment: /*a bunch of hex*/
Tag 40961: 1
  PixelXDimension: 4064
  PixelYDimension: 2704
  FocalPlaneXResolution: 2886.363525
  FocalPlaneYResolution: 2885.805664
  FocalPlaneResolutionUnit: 2
  CustomRendered: 0
  ExposureMode: 0
  WhiteBalance: 1
  SceneCaptureType: 0
TIFF Directory at offset 0x2ae00 (175616)
  Image Width: 168 Image Length: 112
  Resolution: 72, 72 pixels/inch
  Bits/Sample: 16
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Samples/Pixel: 3
  Rows/Strip: 112
  Planar Configuration: single image plane

Thanks for your help

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to