![]() 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 (dark blue to purple)
$blue1 = imagecolorallocate($image, 25, 25, 50);
$blue2 = imagecolorallocate($image, 45, 25, 75);
$purple1 = imagecolorallocate($image, 65, 25, 95);
$purple2 = imagecolorallocate($image, 85, 25, 115);
// Create gradient
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
$r = $blue1 + ($purple1 - $blue1) * $ratio;
$g = $blue2 + ($purple2 - $blue2) * $ratio;
$b = $blue1 + ($purple1 - $blue1) * $ratio;
$color = imagecolorallocate($image, $r, $g, $b);
imageline($image, 0, $y, $width, $y, $color);
}
// Colors for text and elements
$white = imagecolorallocate($image, 255, 255, 255);
$light_blue = imagecolorallocate($image, 100, 150, 255);
$light_purple = imagecolorallocate($image, 150, 100, 255);
// Add logo icon (music note)
$icon_size = 80;
$icon_x = 80;
$icon_y = 120;
$icon_color = $white;
// Draw music note (simplified)
imagefilledellipse($image, $icon_x + 20, $icon_y + 40, 30, 30, $icon_color);
imagefilledrectangle($image, $icon_x + 35, $icon_y + 10, $icon_x + 40, $icon_y + 60, $icon_color);
imagefilledellipse($image, $icon_x + 40, $icon_y + 10, 15, 15, $icon_color);
// Add main title
$font_size = 48;
$title = "SoundStudioPro";
$title_x = 180;
$title_y = 140;
imagettftext($image, $font_size, 0, $title_x, $title_y, $white, '/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf', $title);
// Add subtitle
$subtitle_size = 24;
$subtitle = "AI Music Creation Platform";
$subtitle_x = 180;
$subtitle_y = 180;
imagettftext($image, $subtitle_size, 0, $subtitle_x, $subtitle_y, $light_blue, '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', $subtitle);
// Add features text
$feature_size = 18;
$features = [
"Create professional, watermark-free music with AI",
"Generate original tracks, lyrics, and music videos",
"for your projects"
];
$feature_y = 250;
foreach ($features as $feature) {
imagettftext($image, $feature_size, 0, 180, $feature_y, $white, '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', $feature);
$feature_y += 30;
}
// Add domain at bottom
$domain_size = 14;
$domain = "soundstudiopro.com";
$domain_x = 180;
$domain_y = 580;
imagettftext($image, $domain_size, 0, $domain_x, $domain_y, $light_purple, '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', $domain);
// Add audio waveform dots
for ($i = 0; $i < 25; $i++) {
$x = 600 + ($i * 20);
$y = 400 + rand(-30, 30);
$dot_size = rand(3, 8);
imagefilledellipse($image, $x, $y, $dot_size, $dot_size, $light_blue);
}
// Output the image
imagepng($image);
imagedestroy($image);
?>