Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1680 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Animated Gif's Imagick

Thread title: Animated Gif's Imagick
Reply    
    Thread tools Search this thread Display Modes  
02-10-2011, 11:54 AM
#1
Psychotomus is offline Psychotomus
Status: Member
Join date: Mar 2005
Location: baltimore, md, usa
Expertise: php, mySQL, js, aJax
Software: virtual brain cells
 
Posts: 167
iTrader: 0 / 0%
 

Psychotomus is on a distinguished road

  Old  Animated Gif's Imagick

Everytime I upload any png file's. It just stops execution of my script and creates about 1 75MB file per png file like this "core.######" in my directory. Any idea's on a workaround? It seems to work fine with other image file formats.


PHP Code:
<?
if(isset($_POST['SubmitForm']))
{
        
//setup Imagick
    
$IMG = new Imagick();
        
$IMG->setFormat("gif");
       
        
//loop through possible files
        
for($x=1$x< ($_POST['hidden']+1); $x++)
        {
                if(!empty(
$_FILES['file' $x]['tmp_name']))
                {
                        
//add image to frame
                        
$frame = new Imagick($_FILES['file' $x]['tmp_name']);    

                        
$IMG->addImage($frame);
                        
//100 = 1s
                        
$IMG->setImageDelay($delay 50);
                }
        }

//rand name just for testing purposes
$name rand(199999);
$IMG->writeImages("$name.gif"true); // combine all image into one single image
}
?>

Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed