1. Go to this page and download the library: Download azlanali076/picwish 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/ */
azlanali076 / picwish example snippets
use Azlanali076\Picwish\Facades\Picwish;
use Azlanali076\Picwish\Models\PicwishScale;
// Using Uploaded File
$picwishScale = new PicwishScale($request->file('image_key'));
// Using Image Link
$picwishScale = new PicwishScale(null,'https://link-to-image');
// Using Base 64
$picwishScale = new PicwishScale(null,null, 'data:image/jpeg;adsadsadsadsadas')
// Scale the image
$response = Picwish::scale($picwishScale);
// Get Converted Image URL
echo $response->getImage();
use Azlanali076\Picwish\Facades\Picwish;
use Azlanali076\Picwish\Models\PicwishScale;
$taskId = 'your_task_id_here';
// Check Progress
$response = Picwish::checkProgress($taskId);
// Get Progress
echo $response->getProgress();