![]() 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/private_html/ |
<?php
// Create default Open Graph images for SoundStudioPro
// Ensure assets directory exists
if (!file_exists('assets/images')) {
mkdir('assets/images', 0755, true);
}
// Create default Open Graph image (1200x630)
$width = 1200;
$height = 630;
$image = imagecreatetruecolor($width, $height);
// Define colors matching the site design
$bg_color = imagecolorallocate($image, 26, 35, 126);
$bg_color2 = imagecolorallocate($image, 118, 75, 162);
$white = imagecolorallocate($image, 255, 255, 255);
$light_blue = imagecolorallocate($image, 102, 126, 234);
// Create gradient background
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
$r = round(26 + (118 - 26) * $ratio);
$g = round(35 + (75 - 35) * $ratio);
$b = round(126 + (162 - 126) * $ratio);
$color = imagecolorallocate($image, $r, $g, $b);
imageline($image, 0, $y, $width, $y, $color);
}
// Add SoundStudioPro logo/title
imagestring($image, 5, 50, 100, 'SoundStudioPro', $white);
imagestring($image, 4, 50, 150, 'AI Music Creation Platform', $white);
// Add descriptive text
imagestring($image, 3, 50, 250, 'Create professional, watermark-free music with AI', $white);
imagestring($image, 3, 50, 280, 'Generate original tracks, lyrics, and music videos', $white);
imagestring($image, 3, 50, 310, 'for your projects', $white);
// Add musical note icons (simplified)
for ($i = 0; $i < 20; $i++) {
$x = 400 + ($i * 40) + rand(-10, 10);
$y = 400 + rand(-50, 50);
imagefilledellipse($image, $x, $y, 15, 15, $light_blue);
}
// Add URL
imagestring($image, 3, 50, 550, 'soundstudiopro.com', $light_blue);
// Save default Open Graph image
imagepng($image, 'assets/images/og-default.png');
echo "ā
Created default Open Graph image: assets/images/og-default.png\n";
// Create Twitter card image (same design, different dimensions if needed)
imagepng($image, 'assets/images/twitter-card.png');
echo "ā
Created Twitter card image: assets/images/twitter-card.png\n";
// Create a music-specific default
$music_image = imagecreatetruecolor($width, $height);
// Same gradient background
for ($y = 0; $y < $height; $y++) {
$ratio = $y / $height;
$r = round(26 + (118 - 26) * $ratio);
$g = round(35 + (75 - 35) * $ratio);
$b = round(126 + (162 - 126) * $ratio);
$color = imagecolorallocate($music_image, $r, $g, $b);
imageline($image, 0, $y, $width, $y, $color);
}
// Add waveform visualization
$waveform_y = 250;
$waveform_height = 120;
$bar_width = 6;
$bar_spacing = 3;
$num_bars = floor($width / ($bar_width + $bar_spacing));
for ($i = 0; $i < $num_bars; $i++) {
$x = $i * ($bar_width + $bar_spacing);
$bar_height = rand(20, $waveform_height);
$y1 = $waveform_y + ($waveform_height - $bar_height) / 2;
$y2 = $y1 + $bar_height;
imagefilledrectangle($music_image, $x, $y1, $x + $bar_width, $y2, $light_blue);
}
imagestring($music_image, 5, 50, 100, 'SoundStudioPro Music Community', $white);
imagestring($music_image, 3, 50, 450, 'Discover amazing AI-generated music', $white);
imagepng($music_image, 'assets/images/og-music.png');
echo "ā
Created music Open Graph image: assets/images/og-music.png\n";
// Cleanup
imagedestroy($image);
imagedestroy($music_image);
echo "\nšØ All default Open Graph images created successfully!\n";
echo "These images will be used when tracks are shared on social media.\n";
?>