Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : external-service.php
<?php
/**
 * Created by PhpStorm.
 * User: alex
 * Date: 4/4/19
 * Time: 3:51 PM
 */

class  Brizy_Editor_Asset_Crop_ExternalService implements Brizy_Editor_Asset_Crop_ServiceInterface {


	/**
	 * @var string
	 */
	private $targetPath;

	/**
	 * Brizy_Editor_Asset_Crop_WordpressService constructor.
	 *
	 * @param $sourcePath
	 * @param $targetPath
	 *
	 * @throws Exception
	 */
	public function __construct( $sourcePath, $targetPath ) {

		if ( ! file_exists( $sourcePath ) ) {
			throw new Exception( 'Unable to crop media. Source file not found.' );
		}

		$this->targetPath = $targetPath;
	}

	/**
	 * @param int $offsetX
	 * @param int $offsetY
	 * @param int $width
	 * @param int $height
	 *
	 * @throws Exception
	 */
	public function crop( $offsetX, $offsetY, $width, $height ) {
		throw new Exception( 'Not implemented' );
	}

	/**
	 * @param int $width
	 * @param int $height
	 *
	 * @throws Exception
	 */
	public function resize( $width, $height ) {
		throw new Exception( 'Not implemented' );
	}


	/**
	 * @throws Exception
	 */
	public function saveTargetImage() {
		throw new Exception( 'Not implemented' );
	}

	public function getSize() {
		throw new Exception( 'Not implemented' );
	}
}
© 2025 XylotrechusZ