1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
include_once '../src/message_picture.php';
$old_pfp = imagecreatefrompng('./pfp.png');
$oldw = imagesx($old_pfp);
$oldh = imagesy($old_pfp);
$pfp = imagecreatetruecolor(72, 72);
imagecopyresampled($pfp, $old_pfp, 0, 0, 0, 0, 72, 72, $oldw, $oldh);
$screenshot = generate_message_screenshot(
$pfp,
"ilotterytea",
"forsen",
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos sed quae minus libero odit illum atque itaque nulla! Ut quia fuga excepturi saepe nemo magni exercitationem aperiam commodi maxime ab.",
time()
);
imagedestroy($pfp);
imagedestroy($old_pfp);
header('Content-Type: image/jpeg');
header("Content-Disposition: inline; filename*=UTF-8''someshit.jpg");
imagejpeg($screenshot);
imagedestroy($screenshot);
|