D
D
Diversia2017-05-25 08:47:21
1C-Bitrix
Diversia, 2017-05-25 08:47:21

How to change resizeType in infoblock for detailed and preview images in Bitrix?

Hello!
As far as I understand, the infoblock uses resizeType BX_RESIZE_IMAGE_PROPORTIONAL when creating/changing announcement and detail images. Is it possible to change the resizeType to BX_RESIZE_IMAGE_EXACT in the infoblock settings when reducing the announcement image and the detailed image? If not, please tell me the solution, how it can be overridden.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2017-05-25
@Rema1ns

As an option, disable all settings related to images in IB, and compress images as you need on OnBeforeIBlockElementAdd and OnBeforeIBlockElementUpdate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question