Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.88k stars 1.5k forks source link

Parameter $opacity is invalid in place() method #1343

Closed hetao29 closed 5 months ago

hetao29 commented 5 months ago

Describe the bug Parameter $opacity is invalid in place() method

Code Example

$width = 800;
$height = 800;
$opacity = 5;
$opacity = 90;
$mgr = Intervention\Image\ImageManager::imagick();
$img = $mgr->create($width,$height)->fill("rgba(238,238,238,1)");

$img_content = $this->getFile("https://1111");
$img_thumb= $mgr->read($img_content);
$img->place($img_thumb,"center");

$img_content = $this->getFile("https://22");
$img_thumb_bg = $mgr->read($img_content);
$img->place($img_thumb_bg,"center",0,0,$opacity);
return $img->toPng()->toString();

Environment (please complete the following information):

olivervogel commented 5 months ago

Not reproducible.