Filestack\Filelink::ascii
Set this Filelink's transform_url to include ascii task
Signature
public function ascii([string
$background = 'white',
[boolean
$colored = false,
[string
$foreground = 'red',
[boolean
$reverse = false,
[integer
$size = 100]]]]] )
Parameters
$background
—
string
- background color of the HTML file. This
can be the word for a color hex value
e.g. ('black' or '000000')
$colored
—
boolean
- Reproduces the colors in the original image
if set to true.
$foreground
—
string
- Specifies the font color of ASCII images.
Only works in non-colored mode.
$reverse
—
boolean
- Reverses the character set used to generate
the ASCII output. Requires colored:true.
$size
—
integer
Returns
- Filestack/Filelink
Errors/Exceptions
-
FilestackException
- if API call fails, e.g 404 file not found
Test Coverage
Information
- Coverage: / Lines (%)
- Tests: 0
- Passed: 0 (0%)