Line 154 in /usr/www/users/hplusb/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php
145 * @param resource $resource 146 * @return bool 147 */ 148 public function gdResourceToTruecolor(&$resource) 149 { 150 $width = imagesx($resource); 151 $height = imagesy($resource); 152 153 // new canvas 154 $canvas = imagecreatetruecolor($width, $height); 155 156 // fill with transparent color 157 imagealphablending($canvas, false); 158 $transparent = imagecolorallocatealpha($canvas, 255, 255, 255, 127); 159 imagefilledrectangle($canvas, 0, 0, $width, $height, $transparent); 160 imagecolortransparent($canvas, $transparent);