Line 136 in /homepages/14/d541952220/htdocs/moorhallhotel2020/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php
127 * @param resource $resource 128 * @return bool 129 */ 130 public function gdResourceToTruecolor(&$resource) 131 { 132 $width = imagesx($resource); 133 $height = imagesy($resource); 134 135 // new canvas 136 $canvas = imagecreatetruecolor($width, $height); 137 138 // fill with transparent color 139 imagealphablending($canvas, false); 140 $transparent = imagecolorallocatealpha($canvas, 255, 255, 255, 127); 141 imagefilledrectangle($canvas, 0, 0, $width, $height, $transparent); 142 imagecolortransparent($canvas, $transparent);