Image expands with compression
Image expands with compression
- Subject: Image expands with compression
- From: Lorenzo <email@hidden>
- Date: Sun, 09 May 2004 00:13:12 +0200
Hi,
I read a jpg file (76 KB only)
image = [[NSImage alloc] initWithContentsOfFile:filePath];
then I save it immediately with
[image TIFFRepresentationUsingCompression:
NSTIFFCompressionLZW factor:15.0];
and it grows to 812 KB !?!
Now as written in the header file "NSBitmapImageRep.h", the
NSTIFFCompressionJPEG compression is not longer supported.
So, how can I save my 76 KB image with a smart compression?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.