/home/kueuepay/public_html/vendor/buglinjo/laravel-webp/src/Interfaces/WebpInterface.php
<?php


namespace Buglinjo\LaravelWebp\Interfaces;

use Exception;
use Illuminate\Http\UploadedFile;

interface WebpInterface
{
    /**
     * @param UploadedFile $image
     * @return mixed
     */
    public function make(UploadedFile $image);

    /**
     * @param $quality
     * @return mixed
     */
    public function quality($quality);

    /**
     * @param string $outputPath
     * @param int|null $quality
     * @return bool
     * @throws Exception
     */
    public function save(string $outputPath, int $quality = null): bool;
}
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.