Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $big_img = 'images/big_img.jpg';
- $little_img = 'images/identite.jpg';
- $big = self::create_image($big_img);
- $little = self::create_image($little_img);
- if(!empty($big) || !empty($little)){
- $result = imagecreatetruecolor(100, 100);
- $degre = -30;
- $top = 25;
- $left = 50;
- $color= imagecolorallocate($result, 163, 166, 7);
- imagealphablending($little, true);
- imagesavealpha($little, true);
- $transColor = imagecolorallocatealpha($little, 255, 255, 255, 127);
- $rotate = imagerotate($little, $degre, $transColor,0);
- imagecolorexactalpha($rotate, 255, 255, 255, 0);
- imagecopy($big,$rotate,$top,$left,0,0, imagesx($rotate), imagesy($rotate));
- self::text_display($big, $text,$color);
- imagepng($big,'images/test.png');
- imagedestroy($big);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement