欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

可以调整gif动画图片尺寸的很实用的php类

程序员文章站 2024-01-19 21:05:46
...
类的使用demo:

 "roucheng.php" = ->temp_dir = "keleyi"->resize("keleyi.gif","keleyi_resized.gif",500,500?>

类的源代码,保存为roucheng.php文件:

  
                 
  
       
           = "frames"           = 0           = 0           =            =            =            = 0           =            =            =            = 0           = 0          ,           =            =   
                        
          resize(,,,             ->decode(             ->wr=/->             ->hr=/->             ->             ->encode(,,             ->   
                    
           decode(             ->decoding =              ->             ->loadfile(             ->             ->get_graphics_extension(0             ->             ->             ->get_image_block(0             ->get_graphics_extension(1             ->             ->             ->get_image_block(1             (!->checkbyte(0x3b) && !->                 ->get_comment_data(1                 ->get_graphics_extension(2                 ->get_image_block(2              ->writeframes(             ->             ->decoding =    
                    
           encode(,,              = ""