![]() 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/-756c9f60/ |
<?php
// Generate OG Image for Facebook sharing
header('Content-Type: image/png');
// Create image with Facebook's recommended dimensions (1200x630)
$width = 1200;
$height = 630;
$image = imagecreatetruecolor($width, $height);
// Create gradient background matching the logo design
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
// Gradient from #0f0f23 to #1a1a2e to #16213e
if ($ratio < 0.5) {
$r = 15 + (26 - 15) * ($ratio * 2);
$g = 15 + (26 - 15) * ($ratio * 2);
$b = 35 + (46 - 35) * ($ratio * 2);
} else {
$r = 26 + (22 - 26) * (($ratio - 0.5) * 2);
$g = 26 + (33 - 26) * (($ratio - 0.5) * 2);
$b = 46 + (62 - 46) * (($ratio - 0.5) * 2);
}
$color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
imageline($image, 0, $y, $width, $y, $color);
}
// Colors for text and elements
$white = imagecolorallocate($image, 255, 255, 255);
$light_blue = imagecolorallocate($image, 102, 126, 234);
$light_purple = imagecolorallocate($image, 118, 75, 162);
$gray = imagecolorallocate($image, 160, 174, 192);
// Add logo icon (music note in a rounded rectangle)
$icon_x = 100;
$icon_y = 150;
$icon_size = 120;
// Draw rounded rectangle background for the icon
$bg_color = imagecolorallocate($image, 102, 126, 234);
imagefilledrectangle($image, $icon_x, $icon_y, $icon_x + $icon_size, $icon_y + $icon_size, $bg_color);
// Add gradient effect to the icon background
for ($i = 0; $i < $icon_size; $i++) {
$ratio = $i / $icon_size;
$r = 102 + (118 - 102) * $ratio;
$g = 126 + (75 - 126) * $ratio;
$b = 234 + (162 - 234) * $ratio;
$gradient_color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
imageline($image, $icon_x, $icon_y + $i, $icon_x + $icon_size, $icon_y + $i, $gradient_color);
}
// Draw music note character (♪) - simplified as shapes
// Note head
imagefilledellipse($image, $icon_x + 60, $icon_y + 70, 30, 30, $white);
// Stem
imagefilledrectangle($image, $icon_x + 75, $icon_y + 30, $icon_x + 85, $icon_y + 80, $white);
// Flag
imagefilledellipse($image, $icon_x + 90, $icon_y + 40, 15, 15, $white);
// Add main title
$title = "SoundStudioPro";
$title_x = 250;
$title_y = 180;
imagestring($image, 5, $title_x, $title_y - 20, $title, $white);
// Add subtitle
$subtitle = "AI Music Creation Platform";
$subtitle_x = 250;
$subtitle_y = 220;
imagestring($image, 3, $subtitle_x, $subtitle_y - 20, $subtitle, $gray);
// Add features text
$features = [
"Create professional, watermark-free music with AI",
"Generate original tracks, lyrics, and music videos",
"for your projects"
];
$feature_y = 300;
foreach ($features as $feature) {
imagestring($image, 2, 250, $feature_y - 20, $feature, $white);
$feature_y += 30;
}
// Add domain at bottom
$domain = "soundstudiopro.com";
$domain_x = 250;
$domain_y = 580;
imagestring($image, 2, $domain_x, $domain_y - 20, $domain, $light_purple);
// Add waveform dots at bottom
for ($i = 0; $i < 30; $i++) {
$x = 400 + ($i * 15);
$y = 500 + rand(-20, 20);
$dot_size = rand(2, 6);
imagefilledellipse($image, $x, $y, $dot_size, $dot_size, $light_blue);
}
// Output the image
imagepng($image);
imagedestroy($image);
?>