![]() 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)
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
// Interpolate colors properly
$r = 25 + (65 - 25) * $ratio;
$g = 25 + (25 - 25) * $ratio;
$b = 50 + (95 - 50) * $ratio;
$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, 100, 150, 255);
$light_purple = imagecolorallocate($image, 150, 100, 255);
// Add logo icon (music note) - Simple and clear
$icon_x = 80;
$icon_y = 120;
$icon_color = $white;
// Draw a simple but prominent music note
// Note head (large circle)
imagefilledellipse($image, $icon_x + 30, $icon_y + 50, 50, 50, $icon_color);
// Stem (thick vertical line)
imagefilledrectangle($image, $icon_x + 55, $icon_y + 10, $icon_x + 65, $icon_y + 70, $icon_color);
// Flag (small circle at top)
imagefilledellipse($image, $icon_x + 70, $icon_y + 20, 20, 20, $icon_color);
// Add a subtle glow effect
$glow_color = imagecolorallocate($image, 100, 150, 255);
for ($i = 0; $i < 2; $i++) {
imagefilledellipse($image, $icon_x + 30, $icon_y + 50, 55 + $i*5, 55 + $i*5, $glow_color);
imagefilledrectangle($image, $icon_x + 55, $icon_y + 10, $icon_x + 65, $icon_y + 70, $glow_color);
imagefilledellipse($image, $icon_x + 70, $icon_y + 20, 25 + $i*5, 25 + $i*5, $glow_color);
}
// Redraw the note on top
imagefilledellipse($image, $icon_x + 30, $icon_y + 50, 50, 50, $icon_color);
imagefilledrectangle($image, $icon_x + 55, $icon_y + 10, $icon_x + 65, $icon_y + 70, $icon_color);
imagefilledellipse($image, $icon_x + 70, $icon_y + 20, 20, 20, $icon_color);
// Add main title using basic text (no TTF)
$title = "SoundStudioPro";
$title_x = 180;
$title_y = 140;
imagestring($image, 5, $title_x, $title_y - 20, $title, $white);
// Add subtitle
$subtitle = "AI Music Creation Platform";
$subtitle_x = 180;
$subtitle_y = 180;
imagestring($image, 3, $subtitle_x, $subtitle_y - 20, $subtitle, $light_blue);
// Add features text
$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) {
imagestring($image, 2, 180, $feature_y - 20, $feature, $white);
$feature_y += 30;
}
// Add domain at bottom
$domain = "soundstudiopro.com";
$domain_x = 180;
$domain_y = 580;
imagestring($image, 2, $domain_x, $domain_y - 20, $domain, $light_purple);
// 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);
?>