Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string lowercase
strtolower(string $string): string
public function format($type)
{
switch (strtolower($type)) {
case 'rgba':
return $this->getRgba();
{
switch (strtolower($type)) {
case 'rgba':
return $this->getRgba();
$this->setFormat($format);
$this->setQuality($quality);
switch (strtolower($this->format)) {
case 'data-url':
$this->result = $this->processDataUrl();
$this->setQuality($quality);
switch (strtolower($this->format)) {
case 'data-url':
$this->result = $this->processDataUrl();
return $this;
}
switch (strtolower($type)) {
case 'bool':
case 'boolean':
$valid = \is_bool($value);
}
switch (strtolower($type)) {
case 'bool':
case 'boolean':
$valid = \is_bool($value);
$size = $image->getSize();
$dst = clone $size;
switch (strtolower($mode)) {
case 2:
case 'v':
case 'vert':
$dst = clone $size;
switch (strtolower($mode)) {
case 2:
case 'v':
case 'vert':
foreach ($away as $key => $value) {
$away[$key] = strtolower($value);
}
$away[$key] = strtolower($value);
}
}
switch (strtolower($base)) {
case 'transparent':
case 'trans':
$checkTransparency = true;
switch (strtolower($base)) {
case 'transparent':
case 'trans':
$checkTransparency = true;
$mime = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path);
switch (strtolower($mime)) {
case 'image/png':
case 'image/x-png':
$core = @imagecreatefrompng($path);
switch (strtolower($mime)) {
case 'image/png':
case 'image/x-png':
$core = @imagecreatefrompng($path);
default:
throw new NotReadableException(
sprintf("Unsupported image type %s. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.", strtolower($mime))
);
}
throw new NotReadableException(
sprintf("Unsupported image type %s. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.", strtolower($mime))
);
}
$box = $this->getBoxSize();
$align = is_null($this->align) ? 'left' : strtolower($this->align);
$valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
$align = is_null($this->align) ? 'left' : strtolower($this->align);
$valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
$box = $this->getBoxSize();
$align = is_null($this->align) ? 'left' : strtolower($this->align);
$valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
switch ($align.'-'.$valign) {
$align = is_null($this->align) ? 'left' : strtolower($this->align);
$valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
switch ($align.'-'.$valign) {
}
switch (strtolower($this->align)) {
case 'center':
$posx = ceil($posx - ($width / 2));
break;
switch (strtolower($this->align)) {
case 'center':
$posx = ceil($posx - ($width / 2));
break;
}
switch (strtolower($this->valign)) {
case 'center':
case 'middle':
$posy = ceil($posy - ($height / 2));
switch (strtolower($this->valign)) {
case 'center':
case 'middle':
$posy = ceil($posy - ($height / 2));
{
$mode = $this->argument(0)->value('h');
if (in_array(strtolower($mode), [2, 'v', 'vert', 'vertical'])) {
return $image->getCore()->flipImage();
} else {
$mode = $this->argument(0)->value('h');
if (in_array(strtolower($mode), [2, 'v', 'vert', 'vertical'])) {
return $image->getCore()->flipImage();
} else {
foreach ($away as $key => $value) {
$away[$key] = strtolower($value);
}
$away[$key] = strtolower($value);
}
}
switch (strtolower($base)) {
case 'transparent':
case 'trans':
$checkTransparency = true;
switch (strtolower($base)) {
case 'transparent':
case 'trans':
$checkTransparency = true;