saket / telephoto

Building blocks for designing media experiences in Compose UI
https://saket.github.io/telephoto/
Apache License 2.0
869 stars 28 forks source link

Exif image rotation for ZoomableAsyncImage w/ coil #48

Closed hvisser closed 9 months ago

hvisser commented 9 months ago

When swapping out AsyncImage with ZoomableAsyncImage exif rotation seems to be ignored. AsyncImage shows my image in the correct orientation, while ZoomableAsyncImage does not.

I saw https://github.com/saket/telephoto/issues/30 marked as fixed so this might have regressed (or never worked for Coil)?

saket commented 9 months ago

Will you be able to share a sample image? I've got a few here but it's possible I'm missing something.

Exif rotation is applied by the bitmap decoder so it should work for all image libraries out of the box

hvisser commented 9 months ago

Ah OK, that was added after 1.0.0-alpha02 though which I was using. With the 0.6.0-SNAPSHOT (and 0.5.0) the rotation is correct.

I guess the confusion is that that release even exists as the docs etc do point to 0.5.0. I didn't see that so I did a maven search and picked the "latest" version.

saket commented 9 months ago

Yea sorry about that. My decision to release a 1.x.x-alpha and then go back to using 0.x was a mistake.

hvisser commented 9 months ago

No worries, it's a great library so thanks for that!