Hi Leon, Kyle,

I have been told that ImageIO on iOS does not have RAW decoders. (Kyle knows 
that it does on the desktop.) It's still possible to display something when the 
file has an embedded JPEG thumb, which most RAW files do. I'm not sure what the 
mechanism is, but ImageIO on the desktop does have an explicit way to ask for a 
thumb image. Perhaps try that. 

-Ken
Cocoa Frameworks, but not on iOS

On Jan 25, 2011, at 10:46 PM, Kyle Sluder <kyle.slu...@gmail.com> wrote:

> On Tue, Jan 25, 2011 at 10:05 PM, Leon Qiao <leon.qiao....@gmail.com> wrote:
>> I plan to use the UIWebView to display the preview of some image files.
>> It works well when opening the common files. But it seems some special
>> formats (such as "CRW", Canon Camera Raw file) are not supported. It can be
>> viewed via the QLPreviewController. Is there any better way to do the file
>> preview function?
> 
> Sounds like you're not going to be able to use a UIWebView for your preview.
> 
> ImageIO can read Canon RAW images. Create a CGImageSource with the
> file's URL and you'll be able to get a CGImage out of it. You can then
> wrap it in a UIImageView and display it in a preview UI, or otherwise
> use it as you would any other CGImage.
> 
> --Kyle Sluder
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
> 
> This email sent to kenfe...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to