1. Go to this page and download the library: Download daycode/stup-images 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/ */
daycode / stup-images example snippets
use DayCod\StupImages\StupImages;
use DayCod\StupImages\Functions\StupImageFunctions;
(new StupImages($filename, $path, $width, $height))->StupImagesToStorage($new_image_file, $old_image_file = null)
$filename = "Filename cannot be an empty string ``";
$path = "Path cannot be an empty string ``";
$width = "Width input must be an integer";
$width = "Width Basically is Dimension and Dimension would`nt be lower than zero or negative";
$height = "Height input must be an integer";
$height = "Height Basically is Dimension and Dimension would`nt be lower than zero or negative";
(new StupImageFunctions())->getFileName($old_image_file);
// $old_image_file is a value from the database table where you stored at