GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: /var/www/html/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Flag/Progressive.php
<?php
/**
 * This file is part of the Cloudinary PHP package.
 *
 * (c) Cloudinary
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cloudinary\Transformation;

/**
 * Class Progressive
 */
class Progressive
{
    /**
     * Default mode.
     */
    const PROGRESSIVE = '';

    /**
     * A smart optimization of the decoding time, compression level and progressive rendering (less iterations).
     * This is the default mode when using q_auto.
     */
    const SEMI = 'semi';

    /**
     *  Delivers a preview very quickly, and in a single later phase improves the image to the required resolution.
     */
    const STEEP = 'steep';

    /**
     *  Use this to deliver a non-progressive image. This is the default mode when setting a specific value for quality.
     */
    const NONE = 'none';


    /**
     * Default mode.
     *
     * @return string
     */
    public static function progressive()
    {
        return self::PROGRESSIVE;
    }

    /**
     * A smart optimization of the decoding time, compression level and progressive rendering (less iterations).
     * This is the default mode when using q_auto.
     *
     * @return string
     */
    public static function semi()
    {
        return self::SEMI;
    }

    /**
     * Delivers a preview very quickly, and in a single later phase improves the image to the required resolution.
     *
     * @return string
     */
    public static function steep()
    {
        return self::STEEP;
    }

    /**
     * Use this to deliver a non-progressive image. This is the default mode when setting a specific value for quality.
     *
     * @return string
     */
    public static function none()
    {
        return self::NONE;
    }
}