Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Creado por Jose89FCB
- define("WIDTH", 1920);
- define("HEIGHT", 1080);
- $dest_image = imagecreatetruecolor(WIDTH, HEIGHT);
- imagesavealpha($dest_image, true);
- $trans_background = imagecolorallocatealpha($dest_image, 0, 0, 0, 127);
- imagefill($dest_image, 0, 0, $trans_background);
- $a = imagecreatefrompng('http://api.nitestats.com/v1/news/image.php');
- imagecopy($dest_image, $a, 0, 0, 0, 0, WIDTH, HEIGHT);
- header('Content-Type: image/png');
- imagepng($dest_image);
- imagedestroy($a);
- imagedestroy($dest_image);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement