PHP code example of swissup / module-image
1. Go to this page and download the library: Download swissup/module-image library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
swissup / module-image example snippets
use Swissup\Image\Helper\Dimensions;
$this->dimensions->getWidth($imageUrl); // 600
$this->dimensions->getHeight($imageUrl); // 400
$this->dimensions->getDimensions($imageUrl); // ['width' => 600, 'height' => 400]