src/Uploads/Image.php
public function format($image, array $properties)
    {
        if (key_exists('format', $properties)) {
            $image->encode($properties['format'], $properties['quality']);
        }
        
        if (key_exists('width', $properties)) {
            $image->resize($properties['width'], $properties['height'], function ($constraint) {
                $constraint->aspectRatio();
            });
        }
        
        return $image;
    }
public function format($image, array $properties)
    {
        if (key_exists('format', $properties)) {
            $image->encode($properties['format'], $properties['quality']);
        }
        
        if (key_exists('width', $properties)) {
            $image->resize($properties['width'], $properties['height'], function ($constraint) {
                $constraint->aspectRatio();
            });
        }
        
        return $image;
    }
Format image (format, resize, etc)

@return void