A
A
Alexander Tsymbal2021-02-02 09:13:06
1C-Bitrix
Alexander Tsymbal, 2021-02-02 09:13:06

When creating image thumbnails with CFile::ResizeImageGet do they rotate 90 degrees?

Good afternoon, colleagues.
Maybe someone came across? I am doing a project that provides for uploading photos taken by users from the phone.
To display in the lists, I make thumbnails of these images using the CFile::ResizeImageGet function with the BX_RESIZE_IMAGE_EXACT parameter (I set hard sizes). Thumbnails of portrait photos are rotated 90 degrees. And the original images (which Bitrix did not touch) are displayed correctly.
gmvVNg7uqW3qOm?d=1
I understand that photos taken from mobile devices have embedded meta-data that determines the rotation of the photo based on the values ​​of gyroscopic sensors. But when Bitrix starts making thumbnails of such photos, for some reason, it does not take into account this meta-data.
Tell me how to be? Are there any regular bitrix tools to solve this problem?

UPD: I'm trying to change the resize method to BX_RESIZE_IMAGE_PROPORTIONAL_ALT - the problem persists.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question