src/Extensions/ImageQualityExtension.php
public function Quality($quality)
    {
        // Generate variant key
        $variant = $this->owner->variantName(__FUNCTION__, $quality);

        // Instruct the backend to search for an existing variant and use the callback to provide it if it does not exist.
        return $this->owner->manipulateImage($variant, function (Image_Backend $backend) use ($quality) {
            $backendClone = clone $backend;
            $backendClone->setQuality($quality);

            return $backendClone;
        });
    }
public function Quality($quality)
    {
        // Generate variant key
        $variant = $this->owner->variantName(__FUNCTION__, $quality);

        // Instruct the backend to search for an existing variant and use the callback to provide it if it does not exist.
        return $this->owner->manipulateImage($variant, function (Image_Backend $backend) use ($quality) {
            $backendClone = clone $backend;
            $backendClone->setQuality($quality);

            return $backendClone;
        });
    }
public function Quality ( $ quality ) { // Generate variant key $ variant = $ this -> owner -> variantName ( __FUNCTION__ , $ quality ) ; // Instruct the backend to search for an existing variant and use the callback to provide it if it does not exist. return $ this -> owner -> manipulateImage ( $ variant , function ( Image_Backend $ backend ) use ( $ quality ) { $ backendClone = clone $ backend ; $ backendClone -> setQuality ( $ quality ) ; return $ backendClone ; } ) ; }
This function adjusts the quality of of an image using SilverStripe 4 syntax.

@param $quality
@return mixed
This function adjusts the quality of of an image using SilverStripe 4 syntax .