NSBitmapImageRep compressed TIFF & large files
NSBitmapImageRep compressed TIFF & large files
- Subject: NSBitmapImageRep compressed TIFF & large files
- From: Timofey Sherudilo <email@hidden>
- Date: Sat, 3 Dec 2005 16:50:47 +0600
Hello,
another question about bitmaps. I try to save a bitmap using:
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:NSTIFFCompressionLZW],NSImageCompressionMethod,
[NSNumber numberWithFloat: 1.0], NSImageCompressionFactor,
nil];
[[imageRep representationUsingType:NSTIFFFileType properties:dict] writeToFile:@"somefile.tif" atomically:YES];
This works. But what's interesting: smaller files created with this routine are perfectly read by Photoshop and other programs; larger ones, e.g. those with a resolution 2800 dpi, are saved without any error, but cannot be opened by Photoshop or graphics viewers. Another strange thing: if I choose another format (PNG or JPEG) for saving, all right: Photoshop reads and opens those files perfectly...
Is something wrong with compressed TIFFs created in this way? Is there another way to create such TIFFs? I don't know. Any help will be appreciated.
Thank you.
--
Timofey Sherudilo
email@hidden
http://tim.3dmix.com/
http://timsher.blogspot.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden