imagepalettetotruecolor
Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Converts a palette based image to true color
imagepalettetotruecolor
(
GdImage $image
):
bool
Intervention/image
}
ob_start
();
imagepalettetotruecolor
(
$this
->
image
->
getCore
());
imagealphablending
(
$this
->
image
->
getCore
(),
true
);
imagesavealpha
(
$this
->
image
->
getCore
(),
true
);
imagewebp
(
$this
->
image
->
getCore
(),
null
,
$this
->
quality
);
src/Intervention/Image/Gd/Encoder.php