A
A
Alexander Arbuzov2016-01-22 18:07:32
1C-Bitrix
Alexander Arbuzov, 2016-01-22 18:07:32

How to programmatically update pictures in product/category infoblocks?

Categories and products along with images have been imported into the store. Pictures were imported in full size and now they do not fit into the design (previews for categories, etc.). That is, they are, but in 90% of cases they are too large and do not fit into the design.
How to bulk update images for categories and products in accordance with design requirements?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mechanic, 2016-01-23
@bitrixweb

You can adjust images to the required sizes directly in component templates using the ResizeImageGet method. A very convenient thing, which, among other things, allows you to optimize the page weight well.
https://dev.1c-bitrix.ru/api_help/main/reference/c...

R
Rad1calDreamer, 2016-01-25
@Rad1calDreamer

1 - take all the elements
2 - update their pictures
3 - profit.
I can't even imagine at what stage difficulties may arise

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question