![]() 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/domains/soundstudiopro.com/public_html/ |
<?php
// Simple Open Graph Image Generator (Fallback)
// This creates a basic branded image if the main generator fails
// Check if GD extension is available
if (!extension_loaded('gd')) {
// Output a simple error image
header('Content-Type: image/png');
$image = imagecreatetruecolor(1200, 630);
$red = imagecolorallocate($image, 255, 0, 0);
$white = imagecolorallocate($image, 255, 255, 255);
imagefill($image, 0, 0, $red);
imagestring($image, 5, 400, 300, 'GD Library Not Available', $white);
imagepng($image);
imagedestroy($image);
exit;
}
// Set content type to PNG
header('Content-Type: image/png');
// Create image with SoundStudioPro brand dimensions
$width = 1200;
$height = 630;
$image = imagecreatetruecolor($width, $height);
// SoundStudioPro Brand Colors (from CSS variables)
$primary = imagecolorallocate($image, 102, 126, 234); // #667eea
$secondary = imagecolorallocate($image, 118, 75, 162); // #764ba2
$accent = imagecolorallocate($image, 79, 172, 254); // #4facfe
$bg_dark = imagecolorallocate($image, 10, 10, 10); // #0a0a0a
$bg_card = imagecolorallocate($image, 26, 26, 26); // #1a1a1a
$text_white = imagecolorallocate($image, 255, 255, 255);
$text_secondary = imagecolorallocate($image, 160, 174, 192); // #a0aec0
$text_accent = imagecolorallocate($image, 79, 172, 254); // #4facfe
// Fill background with dark theme
imagefill($image, 0, 0, $bg_dark);
// Create beautiful gradient background
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
// Divine gradient: primary -> secondary -> accent
$r = (int)(102 + (118 - 102) * $ratio + (79 - 118) * $ratio * $ratio);
$g = (int)(126 + (75 - 126) * $ratio + (172 - 75) * $ratio * $ratio);
$b = (int)(234 + (162 - 234) * $ratio + (254 - 162) * $ratio * $ratio);
// Clamp values
$r = min(255, max(0, $r));
$g = min(255, max(0, $g));
$b = min(255, max(0, $b));
$gradient_color = imagecolorallocate($image, $r, $g, $b);
// Create subtle gradient overlay
for ($x = 0; $x < $width; $x++) {
$alpha = (int)(127 * (1 - $ratio) * 0.2); // Subtle overlay
$alpha = min(127, max(0, $alpha));
$overlay_color = imagecolorallocatealpha($image, $r, $g, $b, $alpha);
imagesetpixel($image, $x, $y, $overlay_color);
}
}
// Add geometric patterns for modern look
for ($i = 0; $i < 6; $i++) {
$x = rand(0, $width);
$y = rand(0, $height);
$size = rand(150, 250);
$alpha = rand(15, 25);
// Create circular patterns with brand colors
$pattern_color = imagecolorallocatealpha($image, 79, 172, 254, $alpha);
imagefilledellipse($image, $x, $y, $size, $size, $pattern_color);
}
// Create main content area
$content_x = 100;
$content_y = 150;
$content_width = $width - 200;
$content_height = 300;
// Content background
imagefilledrectangle($image, $content_x, $content_y, $content_x + $content_width, $content_y + $content_height, $bg_card);
// Add border
imagerectangle($image, $content_x, $content_y, $content_x + $content_width, $content_y + $content_height, $primary);
// Create a musical note icon
$note_color = $accent;
$note_x = $content_x + 80;
$note_y = $content_y + 100;
// Draw musical note
imagefilledellipse($image, $note_x, $note_y, 50, 50, $note_color);
imagefilledrectangle($image, $note_x + 20, $note_y - 80, $note_x + 30, $note_y - 20, $note_color);
imagefilledellipse($image, $note_x + 25, $note_y - 90, 20, 20, $note_color);
// Add main title
$title = "SoundStudioPro";
$title_x = $content_x + 200;
$title_y = $content_y + 80;
// Main title
imagestring($image, 5, $title_x, $title_y, $title, $text_white);
// Subtitle
$subtitle = "AI Music Creation Platform";
$subtitle_y = $title_y + 40;
imagestring($image, 4, $title_x, $subtitle_y, $subtitle, $text_accent);
// Tagline
$tagline = "Create Professional Music with AI";
$tagline_y = $subtitle_y + 35;
imagestring($image, 3, $title_x, $tagline_y, $tagline, $text_secondary);
// Features
$features = [
"Generate Original Tracks",
"Professional Quality Audio",
"50,000+ Creators Worldwide"
];
$feature_y = $tagline_y + 50;
foreach ($features as $feature) {
imagestring($image, 3, $title_x, $feature_y, $feature, $text_white);
$feature_y += 30;
}
// Add bottom accent bar
$accent_bar_y = $content_y + $content_height + 30;
$accent_bar_height = 10;
imagefilledrectangle($image, $content_x, $accent_bar_y, $content_x + $content_width, $accent_bar_y + $accent_bar_height, $accent);
// Add website URL
$url = "soundstudiopro.com";
$url_x = $content_x + 80;
$url_y = $content_y + $content_height + 70;
imagestring($image, 3, $url_x, $url_y, $url, $text_accent);
// Output the image
imagepng($image);
imagedestroy($image);
?>