![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/-35077fa3/ |
<?php
// Create a new OG image for Facebook with fresh cache
header('Content-Type: image/png');
$width = 1200;
$height = 630;
$image = imagecreatetruecolor($width, $height);
// Create a vibrant gradient background
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
// Bright gradient: blue to purple
$r = 20 + (80 - 20) * $ratio;
$g = 30 + (60 - 30) * $ratio;
$b = 80 + (120 - 80) * $ratio;
$color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
imageline($image, 0, $y, $width, $y, $color);
}
// Colors
$white = imagecolorallocate($image, 255, 255, 255);
$bright_blue = imagecolorallocate($image, 100, 150, 255);
$purple = imagecolorallocate($image, 150, 100, 255);
$light_gray = imagecolorallocate($image, 200, 200, 200);
// Create a prominent logo area
$logo_x = 80;
$logo_y = 120;
$logo_size = 140;
// Logo background (rounded rectangle effect)
imagefilledrectangle($image, $logo_x, $logo_y, $logo_x + $logo_size, $logo_y + $logo_size, $bright_blue);
// Add gradient to logo background
for ($i = 0; $i < $logo_size; $i++) {
$ratio = $i / $logo_size;
$r = 100 + (150 - 100) * $ratio;
$g = 150 + (100 - 150) * $ratio;
$b = 255;
$gradient_color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
imageline($image, $logo_x, $logo_y + $i, $logo_x + $logo_size, $logo_y + $i, $gradient_color);
}
// Draw a large, clear music note
// Note head (large circle)
imagefilledellipse($image, $logo_x + 70, $logo_y + 80, 45, 45, $white);
// Stem (thick)
imagefilledrectangle($image, $logo_x + 95, $logo_y + 25, $logo_x + 110, $logo_y + 95, $white);
// Flag (large)
imagefilledellipse($image, $logo_x + 120, $logo_y + 40, 25, 25, $white);
// Add glow effect
for ($i = 0; $i < 2; $i++) {
$glow_color = imagecolorallocate($image, 100, 150, 255);
imagefilledellipse($image, $logo_x + 70, $logo_y + 80, 50 + $i*5, 50 + $i*5, $glow_color);
imagefilledrectangle($image, $logo_x + 95, $logo_y + 25, $logo_x + 110, $logo_y + 95, $glow_color);
imagefilledellipse($image, $logo_x + 120, $logo_y + 40, 30 + $i*5, 30 + $i*5, $glow_color);
}
// Redraw the note on top
imagefilledellipse($image, $logo_x + 70, $logo_y + 80, 45, 45, $white);
imagefilledrectangle($image, $logo_x + 95, $logo_y + 25, $logo_x + 110, $logo_y + 95, $white);
imagefilledellipse($image, $logo_x + 120, $logo_y + 40, 25, 25, $white);
// Main title
$title = "SoundStudioPro";
imagestring($image, 5, 250, 160, $title, $white);
// Subtitle
$subtitle = "AI Music Creation Platform";
imagestring($image, 3, 250, 200, $subtitle, $light_gray);
// Features
$features = [
"Create professional, watermark-free music with AI",
"Generate original tracks, lyrics, and music videos",
"for your projects"
];
$y = 280;
foreach ($features as $feature) {
imagestring($image, 2, 250, $y, $feature, $white);
$y += 35;
}
// Call-to-action
$cta_bg = imagecolorallocate($image, 100, 150, 255);
imagefilledrectangle($image, 250, 450, 450, 480, $cta_bg);
imagestring($image, 3, 270, 460, "Start Creating Music", $white);
// Domain
imagestring($image, 2, 250, 580, "soundstudiopro.com", $purple);
// Add decorative elements
for ($i = 0; $i < 20; $i++) {
$x = 600 + ($i * 20);
$y = 400 + rand(-25, 25);
$size = rand(2, 6);
imagefilledellipse($image, $x, $y, $size, $size, $bright_blue);
}
imagepng($image);
imagedestroy($image);
?>