• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/File/Image/Engine.php
  • Класс: BitrixMainFileImageEngine
  • Вызов: Engine::save
public function save($file, $quality = 95, $format = null);

/**
 * Returns actual width of the image.
 * @return int
 */
abstract public function getWidth();

/**
 * Returns actual height of the image.
 * @return int
 */
abstract public function getHeight();

/**
 * Returns actual width and height in the Rectangle object.
 * @return Rectangle
 */
public function getDimensions()
{
	return new Rectangle($this->getWidth(), $this->getHeight());
}