<?php
namespace Intervention\Image\Gd\Commands;
use Intervention\Image\Commands\AbstractCommand;
class ContrastCommand extends AbstractCommand
{
/**
* Changes contrast of image
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function execute($image)
{
$level = $this->argument(0)->between(-100, 100)->required()->value();
return imagefilter($image->getCore(), IMG_FILTER_CONTRAST, ($level * -1));
}
}
Payment Accept
Our platform simplifies payment acceptance, making transaction management effortless. With secure processing and user-friendly tools, you can easily handle payments from credit cards, debit cards, and digital methods. Our intuitive interface is designed for efficiency, ensuring a seamless experience for both you and your customers. Manage your transactions with ease and confidence.