filestack/Filelink.php
public function ascii($background = 'white', $colored = false,
        $foreground='red', $reverse = false, $size = 100)
    {
        $options = [
            'b' => $background,
            'c' => $colored ? 'true' : 'false',
            'f' => $foreground,
            'r' => $reverse ? 'true' : 'false',
            's' => $size
        ];

        // call TransformationMixin function
        $this->setTransformUrl('ascii', $options);

        return $this;
    }
public function ascii($background = 'white', $colored = false,
        $foreground='red', $reverse = false, $size = 100)
    {
        $options = [
            'b' => $background,
            'c' => $colored ? 'true' : 'false',
            'f' => $foreground,
            'r' => $reverse ? 'true' : 'false',
            's' => $size
        ];

        // call TransformationMixin function
        $this->setTransformUrl('ascii', $options);

        return $this;
    }
public function ascii ( $ background = 'white' , $ colored = false , $ foreground = 'red' , $ reverse = false , $ size = 100 ) { $ options = [ 'b' => $ background , 'c' => $ colored ? 'true' : 'false' , 'f' => $ foreground , 'r' => $ reverse ? 'true' : 'false' , 's' => $ size ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'ascii' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include ascii task

@param string   $background      background color of the HTML file. This
can be the word for a color hex value
e.g. ('black' or '000000')
@param bool     $colored         Reproduces the colors in the original image
if set to true.
@param string   $foreground      Specifies the font color of ASCII images.
Only works in non-colored mode.
@param bool     $reverse         Reverses the character set used to generate
the ASCII output. Requires colored:true.

@throws FilestackException   if API call fails, e.g 404 file not found

@return Filestack/Filelink
Set this Filelink s transform_url to include ascii task