Answer the question
In order to leave comments, you need to log in
Is it possible to regenerate all previews with the required size based on a large picture?
The site on 1C-Bitrix has changed design and the announcement pictures for the new design turned out to be too small, is it possible to regenerate all the announcement pictures based on the detailed picture of the main news?
Answer the question
In order to leave comments, you need to log in
Can. You just need to write a function for this, which will go through all the news, take the detailed picture and put it in the preview. In general, it is bad practice to store cropped images in previews or detailed ones, it is better to reduce them directly in the component, then the sizes can be changed at any time and you won’t have to bother with transferring images.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question