Quick repo for easy handling of image
Will work both with GD and Imagick Extensions.
Removes all Exif data.
To install using Composer
composer require deployhuman/PHPImageHandler dev-main
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$image = new Image('c:\filepath\image.jpg');
$image->adaptiveResize(100,200,true);
$image-saveToFile('c:\filepath\newimage.png');
?>