Здравствуйте! <br/> <br/> Для настройки изображений под различные размеры экранов на моем сайте, я использую следующий фрагмент кода. <br/> <br/> <b>Первый:</b> <br/> <pre><code class="php"><?if(!empty($arItem["PREVIEW_PICTURE"])){
$file_w400 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>400, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w600 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>600, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w800 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>800, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w900 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>900, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1000 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1000, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1200 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1200, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1400 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1400, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1500 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1500, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1600 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1600, 'height'=>10000), BX_RESIZE_IMAGE_PROPORTIONAL, true);
$file_w1800 = CFile::ResizeImageGet($arItem["PREVIEW_PICTURE"], array('width'=>1800, 'height'=>10000), BX_RESIZE_IMAGE_PROP