Rotation of HEIF image is sometimes not recognized correctly.

I like HEIF(HEIC) images because they are very lightweight and efficiently compressed.

However sometimes thier rotation is not recognized.


For example,

- photos taken by iPhone : OK

- Rotation info is included in both EXIF and IROT boxes (which are defined HEIF container format).


- photos generated by Android Phones : NG

- Rotation info is included only in IROT boxes.


It seems that iOS checks only rotation info in EXIF, not in IROT boxes.

Is it a bug of iOS framework? or are there any workarounds to avoid this phenomenon?