TK bondservnt[501st] Posted September 17, 2011 Report Posted September 17, 2011 (edited) When I go to the EIB page and I click on a trooper. the system produces an error which shows no graphic. so for example I click on boss link and I get Edited September 17, 2011 by TK Bondservnt 2392 Quote
NoVATie[Admin] Posted September 17, 2011 Report Posted September 17, 2011 From the troopers I tried, only Paul's picture did not come up. Are there others that don't show up for you? Quote
TK bondservnt[501st] Posted September 17, 2011 Author Report Posted September 17, 2011 uh mine? Quote
Daetrin[Admin] Posted September 17, 2011 Report Posted September 17, 2011 It will happen for all with multiple EI's unless their profile pix is replace from a jpg with a gif. The reason is that it was presumed that for multiple IE winners the picture would be an animated gif that shows both costumes. You can list which ones don't have it and ask the IPM team to get on it Quote
TK bondservnt[501st] Posted September 18, 2011 Author Report Posted September 18, 2011 (edited) yeah I remember this topic in the IPM. would be really cool to have a red boarder around multi EIB's. as well it would be nice to have it able to just drop in another photo to the "loop" so when I go Quad with 4 different EIB costumes, we could have it in a series of photos with a basic blend transition. I've talked about dynamically creating GIF from png using PHP before, but here's a guide!~!!! there is a PHP class that can create gif from png. Example #2 Converting a PNG image to GIF using imagegif() <?php // Load the PNG $png = imagecreatefrompng('./php.png'); // Save the image as a GIF imagegif($png, './php.gif'); // Free from memory imagedestroy($png); // We're done echo 'Converted PNG image to GIF with success!'; ?> the tutorial I found might be useful.. Howto: Generate animated GIF with PHP Recently I was asked if it was possible to generate animated GIFs with PHP GD. Knowing that it’s not possible to do this with PHP GD directly, I still wanted to try if it would be possible with some other PHP solutions. After searching the web I found the ‘GIFEncoder.class’ by László Zsidi on phpclasses.org In this blogpost I’ll write a small demo on generating an animated gif with this class. We’ll merge 2 PNG files, and add some text to them before mergin into the animated GIF. 1 header ('Content-type:image/gif'); 2 include('GIFEncoder.class.php'); 3 $text = "Hello World"; 4 5 // Open the first source image and add the text. 6 $image = imagecreatefrompng('source01.png'); 7 $text_color = imagecolorallocate($image, 200, 200, 200); 8 imagestring($image, 5, 5, 5, $text, $text_color); 9 10 // Generate GIF from the $image 11 // We want to put the binary GIF data into an array to be used later, 12 // so we use the output buffer. 13 ob_start(); 14 imagegif($image); 15 $frames[]=ob_get_contents(); 16 $framed[]=40; 17 18 // Delay in the animation. 19 ob_end_clean(); 20 // And again.. 21 // Open the first source image and add the text. 22 $image = imagecreatefrompng('source02.png'); 23 $text_color = imagecolorallocate($image, 200, 200, 200); 24 imagestring($image, 5, 20, 20, $text, $text_color); 25 26 // Generate GIF from the $image 27 // We want to put the binary GIF data into an array to be used later, 28 // so we use the output buffer. 29 30 31 32 ob_start(); 33 imagegif($image); 34 $frames[]=ob_get_contents(); 35 $framed[]=40;// Delay in the animation. 36 ob_end_clean(); 37 38 // Generate the animated gif and output to screen. 39 $gif = new GIFEncoder($frames,$framed,0,2,0,0,0,'bin'); 40 echo $gif->GetAnimation(); To save the animated gif to file: Remove the header(); call on top, and instead of echo $gif->GetAnimation(); add the next lines at the bottom. 1 $fp = fopen('animegif.gif', 'w'); 2 fwrite($fp, $gif->GetAnimation()); 3 fclose($fp); tutorial link with example files HERE Edited September 19, 2011 by TK Bondservnt 2392 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.