Re: Image expands with compression
Re: Image expands with compression
- Subject: Re: Image expands with compression
- From: Lorenzo <email@hidden>
- Date: Sun, 09 May 2004 10:43:36 +0200
Thank you!
Best Regards
--
Lorenzo
email: email@hidden
>
From: Scott Ahten <email@hidden>
>
Date: Sat, 08 May 2004 19:00:17 -0400
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: Image expands with compression
>
>
Lorenzo,
>
>
I think this is what your looking for...
>
>
http://www.cocoadev.com/index.pl?NSImageToJPEG
>
>
- Scott
>
>
>
On May 8, 2004, at 6:13 PM, Lorenzo wrote:
>
>
> 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.
>
>
>
>
>
>
>
>
>
>
- - - - -
>
:: email@hidden
>
:: http://www.pixelfreak.net
>
- - - - -
_______________________________________________
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.