11 lines
730 B
PHP
11 lines
730 B
PHP
<?php
|
|
// Own synthetic fixture. No account, environment, service or database access.
|
|
$path = dirname(__DIR__).'/storage/app/private/investmoz-v2/portal-audit/service-followup-large-image-qa.png';
|
|
$size = 1050;$image = imagecreatetruecolor($size,$size);$noise=random_bytes($size*$size*3);$i=0;
|
|
for($y=0;$y<$size;$y++) for($x=0;$x<$size;$x++) {
|
|
$color=(ord($noise[$i++])<<16)|(ord($noise[$i++])<<8)|ord($noise[$i++]);imagesetpixel($image,$x,$y,$color);
|
|
}
|
|
imagestring($image,5,10,10,'SIMULACAO QA - SYNTHETIC',0xffffff);
|
|
if (!imagepng($image,$path)) throw new RuntimeException('Synthetic PNG failed');
|
|
echo json_encode(['bytes'=>filesize($path),'sha256'=>hash_file('sha256',$path),'synthetic'=>true,'active_writes'=>0]).PHP_EOL;
|