Ватермарк для изображений товара при импорте.

#
Ватермарк для изображений товара при импорте.
Обратил внимание, что при обмене с 1С к загруженным картинкам не применяется ватермарк.

Так и должно быть (это функция не реализована при импорте)?
Модератор
#
Re: Ватермарк для изображений товара при импорте.
Согласно коду из контроллера импорта должен:
                  $aPicturesParam['large_image_isset'] = TRUE;
                  $aPicturesParam['large_image_source'] = $sSourceFile;
                  $aPicturesParam['large_image_name'] = $sSourceFileBaseName;
                  $aPicturesParam['large_image_target'] = $sDestinationFolder . $sTargetFileName;
                  $aPicturesParam['watermark_file_path'] = $oShop->getWatermarkFilePath();
                  $aPicturesParam['watermark_position_x'] = $oShop->watermark_default_position_x;
                  $aPicturesParam['watermark_position_y'] = $oShop->watermark_default_position_y;
                  $aPicturesParam['large_image_preserve_aspect_ratio'] = $oShop->preserve_aspect_ratio;
                  $aPicturesParam['small_image_source'] = $aPicturesParam['large_image_source'];
                  $aPicturesParam['small_image_name'] = $aPicturesParam['large_image_name'];
                  $aPicturesParam['small_image_target'] = $sDestinationFolder . "small_{$sTargetFileName}";
                  $aPicturesParam['create_small_image_from_large'] = TRUE;

                  if (!$bFirstPicture)
                  {
                     $aPicturesParam['large_image_max_width'] = $oProperty->image_large_max_width;
                     $aPicturesParam['large_image_max_height'] = $oProperty->image_large_max_height;
                     $aPicturesParam['small_image_max_width'] = $oProperty->image_small_max_width;
                     $aPicturesParam['small_image_max_height'] = $oProperty->image_small_max_height;
                  }
                  else
                  {
                     $aPicturesParam['large_image_max_width'] = $oShop->image_large_max_width;
                     $aPicturesParam['large_image_max_height'] = $oShop->image_large_max_height;
                     $aPicturesParam['small_image_max_width'] = $oShop->image_small_max_width;
                     $aPicturesParam['small_image_max_height'] = $oShop->image_small_max_height;
                  }

                  $aPicturesParam['small_image_watermark'] = $oShop->watermark_default_use_small_image;
                  $aPicturesParam['small_image_preserve_aspect_ratio'] = $aPicturesParam['large_image_preserve_aspect_ratio'];

                  $aPicturesParam['large_image_watermark'] = $oShop->watermark_default_use_large_image;
Авторизация