Re: Trouble with TIFFs...
Re: Trouble with TIFFs...
- Subject: Re: Trouble with TIFFs...
- From: Matthew Smith <email@hidden>
- Date: Wed, 04 Dec 2002 10:45:20 +1100
>
This is probably my ignorance instead of a bug...?
>
>
I have a Cocoa app that loads images using:
>
>
myImage = [[NSImage alloc] initWithContentsOfURL:url];
>
>
If I use QuickTime Player to export a Picture, selecting TIFF format
>
(Millions of Colors, None Compression, Big Endian), the default file name
>
that QuickTime Player puts up is "myPicture.pct". I can successfully save
>
the file with this name, open it in my Cocoa app, and I see that the
>
resulting NSImage contains an NSPICTImageRep which I can draw, etc.
>
>
If I change the name of the file to "myPicture.tif" (or "myPicture.tiff")
>
and try to open it in my app, I get an NSImage that has NO ImageReps and
>
can't draw itself.
>
>
I notice that Finder thinks the exported file is a PICT file type (and
>
when I keep the file name ".pct" I end up with an NSPICTImageRep instead of
>
an NSTIFFImageRep). Is QuickTime Player actually making a PICT format file -
>
and I'm confusing Cocoa when I try to label it ".tiff"? Or is the TIFF
>
information wrapped in a PICT file format? Or is QuickTime Player making
>
PICTs even though I chose TIFF as the compression type?
I need to check this, but I think tiff *is* a compression type, not a file
format... (doesn't explain what a .tiff file is though :)
You might find that is is compressing the image as a tiff, but saving the
image in the pict format...
Cheers
Matt Smith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.