mz2 / Carpaccio

A fast Swift library for decoding images (including the usual formats + RAW files) + EXIF metadata.
MIT License
120 stars 14 forks source link

CIImage creation out of Sony ARW from iOS #24

Open viteinfinite opened 1 year ago

viteinfinite commented 1 year ago

Hi! Thank you for the great work!

Did you notice by any chance that Sony ARW photos are not getting processed on iOS? (The same exact snippet working on macOS M1).

I'm joining an example image.

sony_a7s_iii_20.arw.zip

And the example code.

let loader = ImageLoader(imageURL: fileItem.url, thumbnailScheme: ImageLoader.ThumbnailScheme.decodeFullImage)
let (ciImage, metadata) = try loader.loadCIImage(options: ImageLoadingOptions(allowDraftMode: true), cancelled: nil)
// On iOS, the line above throws the exception "Failed to decode image at [...]" while it completes correctly on macOS.

Thank you!

tombeta commented 1 year ago

Same problem and need here :/