• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TIFFRepresentationUsingCompression not working as it should
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIFFRepresentationUsingCompression not working as it should


  • Subject: Re: TIFFRepresentationUsingCompression not working as it should
  • From: Marcel Weiher <email@hidden>
  • Date: Thu, 4 Jul 2002 19:21:50 +0200

On Thursday, July 4, 2002, at 06:46 Uhr, Ben Mackin wrote:

Well, since no one seems to have any idea on this one, maybe it is a bug?

Not really. The problem is that the 1 bit-ness is not just a a quality of the output, but also a requirement for the input. So you have to convert your bitmap to 1 bit black/white beforehand.




on 7/2/02 10:57 AM, Ben Mackin at email@hidden wrote:


I am working on a objective-c program, and I came across the following
routine:

- (NSData *)TIFFRepresentationUsingCompression:(NSTIFFCompression)comp
factor:(float)aFloat;

Which is just what I needed. So I wrote my code, and used this along with the
NSTIFFCompression code of NSTIFFCompressionCCITTFAX3, and I outputed my NSData
to disk. But I got a full color tiff file (definitely not what I should have).
If you look at the description for NSTIFFCompressionCCITTFAX3 you see:

NSTIFFCompressionCCITTFAX3
CCITT Fax Group 3 compression. It's for one-bit fax images sent over telephone
lines.

From my understanding of that, and of tiff-f files, I should have gotten a
1-bit, black and white image. What went wrong? Did I read into this too much,
or am I not saving it with CCITT Fax Group 3 compression as it should be?

I need someone that knows something to shed some light. I know this should
work, as it is documented to work.
_______________________________________________
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.


--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.

References: 
 >Re: TIFFRepresentationUsingCompression not working as it should (From: Ben Mackin <email@hidden>)

  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Accessing PDF files
  • Previous by thread: Re: TIFFRepresentationUsingCompression not working as it should
  • Next by thread: Re: TIFFRepresentationUsingCompression not working as it should
  • Index(es):
    • Date
    • Thread