Re: ImageKit: what format does memory mode on 10.7 use?
Re: ImageKit: what format does memory mode on 10.7 use?
- Subject: Re: ImageKit: what format does memory mode on 10.7 use?
- From: Eric Slosser <email@hidden>
- Date: Wed, 22 May 2013 19:45:03 -0400
This is reported as rdar://13966809
On May 22, 2013, at 3:24 PM, Eric Slosser <email@hidden> wrote:
> When I use memory transfer mode on 10.8 , ImageKit calls my scannerDevice:didScanToURL:data: with an NSData object containing TIFF data that can be used with +[NSBitmapImageRep initWithData:].
>
> When I try the same thing on 10.7, the NSData isn't TIFF, it looks like this:
>
> $ hexdump -C -n 256 ~/Desktop/Canon-MG4220mystery
> 00000000 70 00 00 00 01 00 00 00 f0 09 00 00 e7 0c 00 00 |p...............|
> 00000010 d0 1d 00 00 01 00 00 00 08 00 00 00 18 00 00 00 |................|
> 00000020 01 00 00 00 00 00 00 00 01 00 00 00 2c 01 00 00 |............,...|
> 00000030 73 63 61 6e 6e 65 72 2e 72 65 66 6c 65 63 74 69 |scanner.reflecti|
> 00000040 76 65 2e 52 47 42 2e 70 6f 73 69 74 69 76 65 00 |ve.RGB.positive.|
> 00000050 ee ee ed f0 ee ed ed ef ee ef ee ee f0 ed ed ef |................|
> 00000060 ed ea e9 f0 ed ed ee ee ef ef ed ee ec eb f0 eb |................|
> 00000070 21 20 22 21 20 22 20 1f 22 23 23 22 22 20 22 23 |! "! " ."##"" "#|
> 00000080 24 23 24 25 23 27 2a 2b 53 53 4d a6 9e 9d dc dd |$#$%#'*+SSM.....|
> 00000090 df ea e7 e7 ea ea e9 ea eb eb eb eb ef ea ed eb |................|
> 000000a0 ed eb ea eb eb e9 ea ea ea eb ea ec ec ed ec ed |................|
> 000000b0 ea ec ec ec ec ed ea eb ee eb eb e9 ea eb ed ed |................|
> 000000c0 ec ef eb eb ed ed ed ec ea ed eb eb eb eb ed ec |................|
> 000000d0 ee e9 ea e6 e4 eb ed ea ec ec eb ed ee ea ec ef |................|
> 000000e0 eb ec ed eb ea ec ea ed eb e9 eb ec eb ed ed ee |................|
> 000000f0 ee ef ed ec ee ec ec ef eb ed ee ec ed ee ea ea |................|
>
> What format is this?
>
> Or better, How can I tell ImageKit that I want TIFF data?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden