Lines Matching refs:newimg
2070 $newimg = false;
2072 $newimg = @imagecreatetruecolor($to_w, $to_h);
2074 if (!$newimg) $newimg = @imagecreate($to_w, $to_h);
2075 if (!$newimg) {
2082 imagealphablending($newimg, false);
2083 imagesavealpha($newimg, true);
2093 $newimg,
2098 @imagefill($newimg, 0, 0, $transcolorindex);
2099 @imagecolortransparent($newimg, $transcolorindex);
2101 $whitecolorindex = @imagecolorallocate($newimg, 255, 255, 255);
2102 @imagefill($newimg, 0, 0, $whitecolorindex);
2105 $whitecolorindex = @imagecolorallocate($newimg, 255, 255, 255);
2106 @imagefill($newimg, 0, 0, $whitecolorindex);
2112 if (!@imagecopyresampled($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h)) {
2113 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2116 imagecopyresized($newimg, $image, 0, 0, $ofs_x, $ofs_y, $to_w, $to_h, $from_w, $from_h);
2124 $okay = imagejpeg($newimg, $to, $conf['jpg_quality']);
2130 $okay = imagepng($newimg, $to);
2136 $okay = imagegif($newimg, $to);
2142 imagedestroy($newimg);